Search found 96 matches
- Thu Jul 28, 2016 5:27 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]textbutton syntax?
- Replies: 9
- Views: 1573
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...
- Thu Jul 28, 2016 12:30 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]textbutton syntax?
- Replies: 9
- Views: 1573
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.. )
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.. )
- Thu Jul 28, 2016 12:00 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]textbutton syntax?
- Replies: 9
- Views: 1573
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 "...
- Thu Jul 28, 2016 9:27 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]textbutton syntax?
- Replies: 9
- Views: 1573
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")]
- Thu Jul 28, 2016 8:41 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]textbutton syntax?
- Replies: 9
- Views: 1573
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 o...
- Thu Jul 28, 2016 6:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]textbutton syntax?
- Replies: 9
- Views: 1573
[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...
- Thu Jul 21, 2016 11:16 am
- Forum: Ren'Py Questions and Announcements
- Topic: Text-based timer?
- Replies: 5
- Views: 494
Re: Text-based timer?
Pretty much what andrew posted above. Thanks anywaytrooper6 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.
- Thu Jul 21, 2016 7:56 am
- Forum: Ren'Py Questions and Announcements
- Topic: Text-based timer?
- Replies: 5
- Views: 494
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...
- Thu Jul 21, 2016 5:58 am
- Forum: Ren'Py Questions and Announcements
- Topic: Text-based timer?
- Replies: 5
- Views: 494
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=...
- Wed Jul 20, 2016 3:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Imagebutton "flashing" on hover...
- Replies: 4
- Views: 611
Re: Imagebutton "flashing" on hover...
You sir, are a genius...euphemism for "it perfectly worked"!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!
Thanks!
- Mon Jul 18, 2016 9:14 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Customizing vbox/hbox font...
- Replies: 6
- Views: 2798
Re: Customizing vbox/hbox font...
Omg, I thought I've tried that already!xavimat wrote:Delete the quotes:
{font=fonts/myfont.ttf}
it worked, thanks!
- Mon Jul 18, 2016 9:08 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Customizing vbox/hbox font...
- Replies: 6
- Views: 2798
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 9...
- Mon Jul 18, 2016 9:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Customizing vbox/hbox font...
- Replies: 6
- Views: 2798
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:
I know I'm approaching to this as if it was html, sorry...
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"
- Mon Jul 18, 2016 5:47 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Customizing vbox/hbox font...
- Replies: 6
- Views: 2798
[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 t...
- Mon Jul 18, 2016 4:43 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Imagebutton "flashing" on hover...
- Replies: 4
- Views: 611
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...