UI update, prep for round 2: In-game UI feature requests
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
64 posts
• Page 5 of 5 • 1, 2, 3, 4, 5
Re: UI update, prep for round 2: In-game UI feature requests
by slapshot5 » 19 Oct 2011, 05:01
1.0f doesn't work. It looks just the same as without an AlphaComposite.Doublestrike wrote:Oooh that's a good clue. Alpha composite is the transparency of the button. It's dropped down to 25% for disabled buttons. Maybe the buttons aren't showing because a composite isn't defined for them...so your code would work, but should use 100% opacity (1.0f).slapshot5 wrote:If I create a AlphaComposite and specifically assign it to enabled, the buttons become somewhat readable:
- Code: Select all
private AlphaComposite enabledComposite = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.75f);
From that clue, could you try this - in the inits section:In the paintComponent override:
- Code: Select all
private AlphaComposite disabledComposite =
AlphaComposite.getInstance(AlphaComposite.SRC_OVER,0.25f);
private AlphaComposite defaultComposite =
AlphaComposite.getInstance(AlphaComposite.SRC_OVER,1.0f);
- Code: Select all
if(!isEnabled()) {
g2d.setComposite(disabledComposite);
}
else {
g2d.setComposite(defaultComposite);
}
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: UI update, prep for round 2: In-game UI feature requests
by Jaedayr » 25 Oct 2011, 20:04
Maybe I can get this request in the queue for consideration in round 3.
When you mouse over the quest opponent icon in-game would it be possible to display the opponent name and difficulty in the text window at the right? When in a normal match against a generated deck or theme, would it be possible to have the info available as well, even though there may not be a picture icon?

When you mouse over the quest opponent icon in-game would it be possible to display the opponent name and difficulty in the text window at the right? When in a normal match against a generated deck or theme, would it be possible to have the info available as well, even though there may not be a picture icon?
Re: UI update, prep for round 2: In-game UI feature requests
by Doublestrike » 26 Oct 2011, 08:55
Yep yep yep actually can probably squeeze it into work right now. Is a tooltip alright? I've got piles of tooltips everywhere since ya can't beat 'em for efficiency. Another static piece of information is difficult to jam in neatly, since there's so much stuff that demands immediate display priority.Jaedayr wrote:Maybe I can get this request in the queue for consideration in round 3.![]()
When you mouse over the quest opponent icon in-game would it be possible to display the opponent name and difficulty in the text window at the right? When in a normal match against a generated deck or theme, would it be possible to have the info available as well, even though there may not be a picture icon?
---
A joke is a very serious thing.
A joke is a very serious thing.
-
Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
Re: UI update, prep for round 2: In-game UI feature requests
by haganjj42 » 06 Nov 2011, 04:26
hey, just want to say thanks alot for this program.
and im very much looking forward to the ability to add a background image to the battlefield... the white looks so boring
===
also, sorry if this is already taken into consideration...
but; what about making the card view resizable on the deck creator...
to get bigger and make the fake card detail screen smaller.
i have the HQ pics and the size is made for LQ pics i guess.
i like to have the right side card view BIIG when i play, and in the deck editor it is smaller.
and im very much looking forward to the ability to add a background image to the battlefield... the white looks so boring

===
also, sorry if this is already taken into consideration...
but; what about making the card view resizable on the deck creator...
to get bigger and make the fake card detail screen smaller.
i have the HQ pics and the size is made for LQ pics i guess.
i like to have the right side card view BIIG when i play, and in the deck editor it is smaller.
- haganjj42
- Posts: 4
- Joined: 26 Feb 2011, 17:42
- Has thanked: 0 time
- Been thanked: 0 time
64 posts
• Page 5 of 5 • 1, 2, 3, 4, 5
Who is online
Users browsing this forum: No registered users and 58 guests