myk's code contributions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: myk's code contributions
by moomarc » 07 Feb 2013, 11:08
Marc is good.myk wrote:You're awesome. Thanks, Marc (or do you prefer "moo"?)

-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
Re: myk's code contributions
by myk » 07 Feb 2013, 11:50
Max: Thanks -- maybe I can use that for the total count as well instead of the special case that was (and is) there (Edit: r19455). Which features are still missing from the deck editor? I haven't really used the old one (apart from one compile of an old revision just to see what it looked like when you first mentioned the old toggle buttons).
- myk
- Posts: 439
- Joined: 17 Jan 2013, 02:39
- Location: California
- Has thanked: 38 times
- Been thanked: 57 times
Re: myk's code contributions
by myk » 07 Feb 2013, 21:35
I'm trying to get the hover/focus system working consistently. I'm going through and trying to make sure the current focus is clear in each screen and enabling tab focus traversal. The most recent change I did put an alpha channel in front of hoverable/selectable labels that are not currently hovered. What do you think? Does it make the unhovered labels too dark? Does it increase clarity? I could use some feedback from our resident Pixel Commander.
- myk
- Posts: 439
- Joined: 17 Jan 2013, 02:39
- Location: California
- Has thanked: 38 times
- Been thanked: 57 times
Re: myk's code contributions
by moomarc » 07 Feb 2013, 21:44
I'll only be able to check in a few hours when I wake up. Just going to sleep in my part of the world.
-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
Re: myk's code contributions
by myk » 07 Feb 2013, 22:35
No worries, take your time. If it goes out as-is in the next beta, I'd be happy to hear player feedback as well.
- myk
- Posts: 439
- Joined: 17 Jan 2013, 02:39
- Location: California
- Has thanked: 38 times
- Been thanked: 57 times
Re: myk's code contributions
by Max mtg » 08 Feb 2013, 00:17
This is also a very bad practice
http://svn.slightlymagic.net/websvn/fil ... &peg=19312
because it gives core class extra responsibility.
r19467-19468 revert this terrible change.
http://svn.slightlymagic.net/websvn/fil ... &peg=19312
because it gives core class extra responsibility.
r19467-19468 revert this terrible change.
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
- myk
- Posts: 439
- Joined: 17 Jan 2013, 02:39
- Location: California
- Has thanked: 38 times
- Been thanked: 57 times
Re: myk's code contributions
by moomarc » 08 Feb 2013, 07:14
I had a look at the deck editor tabbing and it seems perfect as is. On a very dark theme like Dark Ascension, it can seem a little too dark, but it's not worth changing for. It's perfectly balanced for the other skins in my opinion.
I did notice however that if you add a Set filter, you can no longer tab around the editor. I guess focus isn't being reset.
I did notice however that if you add a Set filter, you can no longer tab around the editor. I guess focus isn't being reset.
-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
Re: myk's code contributions
by myk » 08 Feb 2013, 19:02
Cool, thanks for the review - and if I ever make a change that's doesn't gel artistic-wise, please do tell me. Good catch on the focus problem; I'll get that fixed
btw, I'll be mostly unavailable this weekend. I'll respond to any posts on Monday.
btw, I'll be mostly unavailable this weekend. I'll respond to any posts on Monday.
- myk
- Posts: 439
- Joined: 17 Jan 2013, 02:39
- Location: California
- Has thanked: 38 times
- Been thanked: 57 times
Re: myk's code contributions
by Max mtg » 09 Feb 2013, 22:56
* Ability to add/remove card under cursor in table by pressing space bar or right mouse button (need a way to add cards fast)myk wrote:Which features are still missing from the deck editor? I haven't really used the old one (apart from one compile of an old revision just to see what it looked like when you first mentioned the old toggle buttons).
* Ability to open decks from in-memory storages (where all the constructed, draft, sealed, planar decks are read on startup)
* That "all decks" tab looks unfinished. It has a single button and nothing else. I don't know what was the original idea, so the button might be moved to a more accessible place.
* As cursor is set on the table, typing card name should move focus towards the matching card
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: myk's code contributions
by myk » 10 Feb 2013, 06:48
Space bar to move is implemented. I'm planning on adding a r-click menu interface to several elements, including adding cards to deck/sideboard.Max mtg wrote:* Ability to add/remove card under cursor in table by pressing space bar or right mouse button (need a way to add cards fast)myk wrote:Which features are still missing from the deck editor?
will add* Ability to open decks from in-memory storages (where all the constructed, draft, sealed, planar decks are read on startup)
agreed. I'll see what I can do about it.* That "all decks" tab looks unfinished. It has a single button and nothing else. I don't know what was the original idea, so the button might be moved to a more accessible place.
also on my list. shouldn't be too hard to implement.* As cursor is set on the table, typing card name should move focus towards the matching card
- myk
- Posts: 439
- Joined: 17 Jan 2013, 02:39
- Location: California
- Has thanked: 38 times
- Been thanked: 57 times
Re: myk's code contributions
by myk » 10 Feb 2013, 07:57
fixed in r19504. I may move the focus restoring code somewhere else eventually -- perhaps into SOverlayUtil -- once I get a feel for how focus should be handled program-wide. I'm sure this problem will crop up in other places too.moomarc wrote:I did notice however that if you add a Set filter, you can no longer tab around the editor. I guess focus isn't being reset.
- myk
- Posts: 439
- Joined: 17 Jan 2013, 02:39
- Location: California
- Has thanked: 38 times
- Been thanked: 57 times
Re: myk's code contributions
by myk » 10 Feb 2013, 10:13
I started on find-as-you-type for editor tables. Basic functionality is there. I'm going to add a popup showing the current search string next. There is an unwelcome interaction between find-as-you-type and the spacebar shortcut for adding/removing cards: every time you type a card name with a space in it, you add the currently selected card. How do people feel about changing the add/remove shortcut to something else, like the left/right arrow keys?
- myk
- Posts: 439
- Joined: 17 Jan 2013, 02:39
- Location: California
- Has thanked: 38 times
- Been thanked: 57 times
Re: myk's code contributions
by friarsol » 10 Feb 2013, 14:00
Maybe Ctrl+Left or Right? I use the up/down arrows to scroll through the list, and it'd be really confusing to add things if I hit the wrong key by accident (especially since I may add a few things before I notice the reason its "scrolling" is because the original selected row is missing.myk wrote:How do people feel about changing the add/remove shortcut to something else, like the left/right arrow keys?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: myk's code contributions
by Max mtg » 10 Feb 2013, 14:09
I speak for leaving this as it is. The main purpose of that feature is to ease the search of needed card, that is position the cursor around card's location in the table. As one enters the first 3-4 letters of cardname, one already is able find the card visually and use up/down arrows to point at the needed card, so that space will not be used to type cardname.myk wrote:I started on find-as-you-type for editor tables. Basic functionality is there. I'm going to add a popup showing the current search string next. There is an unwelcome interaction between find-as-you-type and the spacebar shortcut for adding/removing cards: every time you type a card name with a space in it, you add the currently selected card. How do people feel about changing the add/remove shortcut to something else, like the left/right arrow keys?
Left-Right keys might be good for switching between panels, while space pressed with shift or crtl would stand for "move 4 cards of that kind"
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Who is online
Users browsing this forum: No registered users and 32 guests