Page 1 of 1

How to Use Graphic in Bar Help?

Posted: Wed Feb 15, 2017 2:28 am
by SmartAppleGames
hi im trying to add a graphic as a label in two bars but i get errors i think im coding it wrong. how should i do this?

default stat = 0
default stat2 = 0

screen sidebar:
frame:
has vbox
hbox:
image stat = "stat.png" xminimum 100
bar value stat range 100 xmaximum 400
hbox:
image stat2 = "stat2.png" xminimum 100
bar value stat2 range 100 xmaximum 400

Re: How to Use Graphic in Bar Help?

Posted: Wed Feb 15, 2017 2:52 am
by wyverngem
You need to remove the has vbox and just write it in like this.

Code: Select all

default stat = 0
default stat2 = 0

screen sidebar:
    frame:
        vbox:
            hbox:
                image stat = stat xminimum 100
                bar value stat range 100 xmaximum 400
            hbox:
                image stat2 = stat xminimum 100
                bar value stat2 range 100 xmaximum 400

Re: How to Use Graphic in Bar Help?

Posted: Wed Feb 15, 2017 3:32 am
by SmartAppleGames
I copy pasted your code but get error msg.

image stat ->= "stat.png" xminimum 100 expected keyword argument, colon, or end of line

doesnt work, any other solutions?

Re: How to Use Graphic in Bar Help?

Posted: Wed Feb 15, 2017 1:25 pm
by wyverngem
Sorry, I was half asleep when I posted this. It's just stat no quotations.