Search found 96 matches

by UselessCoder
Thu Jul 28, 2016 5:27 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]textbutton syntax?
Replies: 9
Views: 323

Re: [SOLVED]textbutton syntax?

Well, you are right again. I said that the four "triggers" are independent, but with an exception: if action is None (or not defined), then the others (hovered, unhovered and alternate) can't work, because the button is insensitive. This is the reason why the empty NullAction() exists (to have a bu...
by UselessCoder
Thu Jul 28, 2016 12:30 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]textbutton syntax?
Replies: 9
Views: 323

Re: [SOLVED]textbutton syntax?

Ok, so...I'm totally clueless about how on earth that last attempt worked. lol
Seriously, especially in regard of "action[SensitiveIf"...I mean, how can a button sensitive/non-sensitive status be considered an "action"? :? (but still...somehow it worked.. :? )
by UselessCoder
Thu Jul 28, 2016 12:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]textbutton syntax?
Replies: 9
Views: 323

Re: textbutton syntax?

The [ ] are only needed to make lists of actions. In your former examples, there are errors because there are brakets not closed or not opened or closed twice. Yes xavimat, thanks...I've found out myself by making mistakes over mistakes. The thing is I was considering "hovered" and "unhovered" as "...
by UselessCoder
Thu Jul 28, 2016 9:27 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]textbutton syntax?
Replies: 9
Views: 323

Re: textbutton syntax?

I've finally found a working fix:

Code: Select all

action[ SensitiveIf(rank_b==True and not rank_d)] hovered [Show ("tooltip", tooltip=skill_tooltip, my_tt_ypos=693)]unhovered [Hide("tooltip")]
by UselessCoder
Thu Jul 28, 2016 8:41 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]textbutton syntax?
Replies: 9
Views: 323

Re: textbutton syntax?

textbutton _("Bad E"): action NullAction() hovered [Show("tooltip", tooltip=skill_tooltip, my_tt_ypos=693)] unhovered [Hide("tooltip")], SensitiveIf(rank_b==True and not rank_d)] thanks andrew, but that didn't work either...there was an extra "]" at the end of your code, anyway...however, the error...
by UselessCoder
Thu Jul 28, 2016 6:44 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]textbutton syntax?
Replies: 9
Views: 323

[SOLVED]textbutton syntax?

I've tried different bracketing for this but I still can't figure out what's wrong... :( I'm sorry, but an uncaught exception occurred. File "game/screens/my_screens.rpy", line 449, in keywords textbutton _("Bad E") action [NullAction(), hovered [Show("tooltip", tooltip=skill_tooltip, my_tt_ypos=693...
by UselessCoder
Thu Jul 21, 2016 11:16 am
Forum: Ren'Py Questions and Announcements
Topic: Text-based timer?
Replies: 5
Views: 290

Re: Text-based timer?

trooper6 wrote:Go to the Tutorial game (which you can access from the Renpy Launcher) and check out DynamicDisplayables. That will give you want you want.
Pretty much what andrew posted above. Thanks anyway
by UselessCoder
Thu Jul 21, 2016 7:56 am
Forum: Ren'Py Questions and Announcements
Topic: Text-based timer?
Replies: 5
Views: 290

Re: Text-based timer?

hi andrewngn13 and thanks for your answer. Unfortunately that example is not what I was looking for...I'm looking for a counter like from "0" to "10" but I need that numbers to be text and not images (like the one I've created). Maybe I could create some "image" made of text like: image counter: tex...
by UselessCoder
Thu Jul 21, 2016 5:58 am
Forum: Ren'Py Questions and Announcements
Topic: Text-based timer?
Replies: 5
Views: 290

Text-based timer?

Hi, just a "conceptual" question out of my attempts to get my project more functional and less heavy in terms of assets: ...Is there a way to code a displayable as if it was a timer? As of now, I've achieved this by creating an animation where every single frame is a number (from 0 to 100= 100 pngs ...
by UselessCoder
Wed Jul 20, 2016 3:17 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Imagebutton "flashing" on hover...
Replies: 4
Views: 348

Re: Imagebutton "flashing" on hover...

gas wrote:Doesn't the first touple need to be the total size of the composed "widget"?
You're stating (0,0), maybe this create some issue for an hovering displayable.
Try check it!
You sir, are a genius...euphemism for "it perfectly worked"!

Thanks! :D
by UselessCoder
Mon Jul 18, 2016 9:14 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Customizing vbox/hbox font...
Replies: 6
Views: 283

Re: Customizing vbox/hbox font...

xavimat wrote:Delete the quotes:
{font=fonts/myfont.ttf}
Omg, I thought I've tried that already! :(

it worked, thanks!
by UselessCoder
Mon Jul 18, 2016 9:08 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Customizing vbox/hbox font...
Replies: 6
Views: 283

Re: Customizing vbox/hbox font...

If you have only one text element inside the box, dont need the style, apply the properties directly: text "bla bla" size 14 color "#f00" font "myfont.ttf" Yes that's what I meant and what I needed, sorry for not being more specific. This works: hbox: spacing 10 xpos 940 ypos 73 text "{font=font.tt...
by UselessCoder
Mon Jul 18, 2016 9:05 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Customizing vbox/hbox font...
Replies: 6
Views: 283

Re: Customizing vbox/hbox font...

Thanks trooper... :facepalm:

The only thing is, it only works if I put the font into the main game folder, as it doesn't accept it in the format:

Code: Select all

font="fonts/blabla.ttf"
I know I'm approaching to this as if it was html, sorry... :lol:
by UselessCoder
Mon Jul 18, 2016 5:47 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Customizing vbox/hbox font...
Replies: 6
Views: 283

[SOLVED]Customizing vbox/hbox font...

Ok, now this is so embarassing because I know it's a stupid question about an overly discussed issue, but still... How do I change the font of a specific hbox/vbox: hbox: spacing 10 xpos 1170 ypos 20 text "{color=#FFFFFF}{size=-3} Cr. [money]{/size}{/color}" As of now, it of course takes the "defaul...
by UselessCoder
Mon Jul 18, 2016 4:43 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Imagebutton "flashing" on hover...
Replies: 4
Views: 348

Re: Imagebutton "flashing" on hover...

Hello! Amateur here, so sorry in advance if I'm wrong, but is it possible that there are vectors inside your picture button? As in... There are segments that are 'see-through' or 'invisible'? I've had problems with that in the past, so I was just wondering. (I have too much difficulty with imagebut...