Suggestion for Stock component

Game development with Board Game Arena Studio
Post Reply
User avatar
adela82
Posts: 13
Joined: 05 November 2013, 13:46

Suggestion for Stock component

Post by adela82 »

Hi!

I realize when you want to select items in a Stock component, the selection appears with a very thin red border, sometimes you cannot see. Maybe it would be great if we can have a selected class which we can work with. In the code you see:

Code: Select all

,selectItem: function(id) {
     var _dc2 = $(this.getItemDivId(id));
    if (this.selectionApparance == "border") {
        dojo.style(_dc2, "borderWidth", this.apparenceBorderWidth);
    } else {
        if (this.selectionApparance == "disappear") {
            dojo.fadeOut({node: _dc2}).play();
        }
    }
It would be great if we have another selectionApparance called "class" and a variable called apparenceClassName
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: Suggestion for Stock component

Post by sourisdudesert »

Hi,

Nice suggestion.

In the meantime, you can play with:

<your_stock_object>.apparenceBorderWidth = '2px';

... to make the selection a little less thin.

Cheers,
User avatar
adela82
Posts: 13
Joined: 05 November 2013, 13:46

Re: Suggestion for Stock component

Post by adela82 »

I've already done that :)
Post Reply

Return to “Developers”