Skip to content

u/-Clem

In this archive from Jan 2019 to Oct 2024

18
posts
105
comments
6
media
974
score
2 saved before deletion

Can't click Button child of Popup

I've been troubleshooting this one for a couple hours now and I'm really at a loss. I have a UI scene with a tree like this: Node2D --- CanvasLayer ------ Label --- CanvasLayer ------ Popup --------- Sprite --------- Button No matter what I try I can't click that button. I can focus it and press it...

0 points0 comments
Open on Reddit

Users and Posts can each have many Tags. What's the best way to get the Posts that are tagged with the User's tags?

If a User "has" a tag, that indiciates the user is following or subscribed to that tag. So we want to show all posts that are in the User's subscribed categories ("tags"). The first way I came up with was to load all the user's tags with their posts, then iterate through and push them into a Collect...

15 points8 comments
Open on Reddit

How do you encapsulate/represent/"object"-ify entities that do not have a direct 1:1 relationship with the database?

For example: your app manages and organizes a media library of movies and TV. Think Plex or Kodi. In the database you have people, movies, and a person_movie pivot table that describes a given person's role on a given movie (actor, director, writer, etc). So in Eloquent you have a Person model and a...

2 points7 comments
Open on Reddit

How to think about and organize tests?

So I just set up my latest project with a resource controller and started to write some tests for it. Let's say it's a PostController with the usual CRUD ops and I wrote a test for the PostController@store method something like this: <?php class StoreTest extends TestCase { / Tests the PostControlle...

1 points2 comments
Open on Reddit

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.