It is currently 12 Sep 2025, 12:06
   
Text Size

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

Re: UI update, prep for round 2: In-game UI feature requests

Postby slapshot5 » 19 Oct 2011, 05:01

Doublestrike wrote:
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);
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).

From that clue, could you try this - in the inits section:
Code: Select all
private AlphaComposite disabledComposite =
            AlphaComposite.getInstance(AlphaComposite.SRC_OVER,0.25f);
private AlphaComposite defaultComposite =
            AlphaComposite.getInstance(AlphaComposite.SRC_OVER,1.0f);
In the paintComponent override:
Code: Select all
if(!isEnabled()) {
    g2d.setComposite(disabledComposite);
}
else {
    g2d.setComposite(defaultComposite);
}
1.0f doesn't work. It looks just the same as without an AlphaComposite.

-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

Postby Jaedayr » 25 Oct 2011, 20:04

Maybe I can get this request in the queue for consideration in round 3. :D

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?
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: UI update, prep for round 2: In-game UI feature requests

Postby Doublestrike » 26 Oct 2011, 08:55

Jaedayr wrote:Maybe I can get this request in the queue for consideration in round 3. :D

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?
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.
---
A joke is a very serious thing.
User avatar
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

Postby 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 :D
===
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

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 58 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 58 users online :: 0 registered, 0 hidden and 58 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 58 guests

Login Form