Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Tue Jun 18, 2013 9:39 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Mar 13, 2011 4:13 pm 
Hentai Poofter
User avatar

Joined: Sat Feb 04, 2006 11:13 pm
Posts: 1708
Location: Philippines
Completed: http://wp.me/PG477-eI See my blog list... quite many
Projects: http://wp.me/PG477-eL See my blog list... quite many
Organization: Studio Mugenjohncel
OK first I have this code...

Code:
screen load_save_slot:
    $ file_text = "% 2d. %s\n  %s" % (number, FileTime(number, empty="Empty slot."), FileSaveName(number))
 
    add FileScreenshot(number) xpos 0 ypos 0
    text file_text xpos 0 ypos 0
 
screen load:
    tag menu
   
    imagemap:
        ground 'gui/load_ground.png'
        idle 'gui/load_idle.png'
        hover 'gui/load_hover.png'
        selected_idle 'gui/load_selected_idle.png'
        selected_hover 'gui/load_selected_hover.png'
 
       
        hotspot (-1, -1, -1, -1) action FilePage('auto')
        hotspot (66, 40, 73, 73) action FilePage(1)
        hotspot (149, 40, 74, 73) action FilePage(2)
        hotspot (232, 40, 73, 73) action FilePage(3)
        hotspot (315, 40, 73, 73) action FilePage(4)
        hotspot (398, 40, 74, 73) action FilePage(5)
        hotspot (481, 40, 74, 73) action FilePage(6)
        hotspot (68, 132, 368, 101) action FileAction(0):
            use load_save_slot(number=0)
        hotspot (107, 243, 369, 101) action FileAction(1):
            use load_save_slot(number=1)
        hotspot (147, 354, 368, 102) action FileAction(2):
            use load_save_slot(number=2)
        hotspot (187, 465, 368, 101) action FileAction(3):
            use load_save_slot(number=3)
        hotspot (607, 244, 151, 45) action Return()
        hotspot (607, 298, 151, 44) action ShowMenu('save')
        hotspot (607, 352, 151, 45) action ShowMenu('load')
        hotspot (607, 406, 151, 44) action ShowMenu('preferences')
        hotspot (607, 460, 151, 44) action MainMenu()
        hotspot (607, 514, 151, 45) action Quit()

screen save:
    tag menu
   
    imagemap:
        ground 'gui/save_ground.png'
        idle 'gui/save_idle.png'
        hover 'gui/save_hover.png'
        selected_idle 'gui/save_selected_idle.png'
        selected_hover 'gui/save_selected_hover.png'
 
       
        hotspot (-1, -1, -1, -1) action FilePage('auto')
        hotspot (66, 40, 73, 73) action FilePage(1)
        hotspot (149, 40, 74, 73) action FilePage(2)
        hotspot (232, 40, 73, 73) action FilePage(3)
        hotspot (315, 40, 73, 73) action FilePage(4)
        hotspot (398, 40, 74, 73) action FilePage(5)
        hotspot (481, 40, 74, 73) action FilePage(6)
        hotspot (68, 132, 368, 101) action FileAction(0):
            use load_save_slot(number=0)
        hotspot (107, 243, 369, 101) action FileAction(1):
            use load_save_slot(number=1)
        hotspot (147, 354, 368, 102) action FileAction(2):
            use load_save_slot(number=2)
        hotspot (187, 465, 368, 101) action FileAction(3):
            use load_save_slot(number=3)
        hotspot (607, 244, 151, 45) action Return()
        hotspot (607, 298, 151, 44) action ShowMenu('save')
        hotspot (607, 352, 151, 45) action ShowMenu('load')
        hotspot (607, 406, 151, 44) action ShowMenu('preferences')
        hotspot (607, 460, 151, 44) action MainMenu()
        hotspot (607, 514, 151, 45) action Quit()


It's working except... (see attachment)

Well, I don't seem to have a way to make the text move to a place or a position I wanted them? Can someone help me on this one please... I've been stuck on this problem for days now... I think the text on the top part of the code has something to do with it but... can someone please explain it to this poor guy in plain terms what those lines are for and what I needed to adjust to make them text and pictures in the save slot go where I wanted them to be...I think I figured it out (I'm so dumb)... Also, how do I change the size of the Thumbnail in Screen based Imagemap... it used to be easy in the old imagemap but I can't seem to find anything about changing the thumbnail size for the screen based imagemap...

"POOF" (Disappears)


Attachments:
File comment: Oh my...
screenshot0001.png
screenshot0001.png [ 183.8 KiB | Viewed 217 times ]

_________________
800x600 is the Sacred Resolution that guarantees smooth playback on every machine...
Studio Mugenjohncel proudly supports 800x600 game resolution with Burning Passion
[ STUDIO MUGENJOHNCEL ]   [ UNCLE MUGEN'S BACKGROUND TUTORIAL ]
Image
 [ UNCLE MUGEN'S TWITTER ]  [ UNCLE MUGEN'S FREE OELVN BG'S ]
Top
 Profile Send private message  
 
PostPosted: Sun Mar 13, 2011 4:33 pm 
Veteran
User avatar

Joined: Wed Nov 18, 2009 11:17 am
Posts: 365
Location: Germany
Completed: Loren
Projects: PS2
Code:
screen load_save_slot:
    $ file_text = "% 2d. %s\n  %s" % (number, FileTime(number, empty="Empty slot."), FileSaveName(number))
    frame:
        background None xmargin 5 ymargin 5
        has vbox
        add FileScreenshot(number)
        text file_text


This should place the text under the screenshot, the margin is there to prevent overlap with the background borders.
You can also use has hbox instead of has vbox to place the text at the left of the screenshot.

At least I hope, that's what you wanted and I didn't completely misunderstood you.

_________________
Avatar created with this deviation by Crysa
Currently working on:
  • Winterwolves "Planet Stronghold 2" - RPG Framework: Phase II


Top
 Profile Send private message  
 
PostPosted: Sun Mar 13, 2011 4:54 pm 
Hentai Poofter
User avatar

Joined: Sat Feb 04, 2006 11:13 pm
Posts: 1708
Location: Philippines
Completed: http://wp.me/PG477-eI See my blog list... quite many
Projects: http://wp.me/PG477-eL See my blog list... quite many
Organization: Studio Mugenjohncel
Thanks... but one more problem...

Code:
    style.file_picker_ss_window.xpos = 248
    style.file_picker_ss_window.ypos = 11
    config.thumbnail_width = 108   
    config.thumbnail_height = 81   


The code above was the one responsible for the thumbnail position and size for the classic imagemap. I really could use something like this for the screen based imagemap...

"POOF" (Disappears)

_________________
800x600 is the Sacred Resolution that guarantees smooth playback on every machine...
Studio Mugenjohncel proudly supports 800x600 game resolution with Burning Passion
[ STUDIO MUGENJOHNCEL ]   [ UNCLE MUGEN'S BACKGROUND TUTORIAL ]
Image
 [ UNCLE MUGEN'S TWITTER ]  [ UNCLE MUGEN'S FREE OELVN BG'S ]


Top
 Profile Send private message  
 
PostPosted: Sun Mar 13, 2011 5:02 pm 
Veteran
User avatar

Joined: Wed Nov 18, 2009 11:17 am
Posts: 365
Location: Germany
Completed: Loren
Projects: PS2
The config variables did not change. So setting them in the init section should remedy the size problem.
Be careful though, this changes the size of the screenshot when it's taken, not when it's shown. So all old saves will still have the small thumbnails.

_________________
Avatar created with this deviation by Crysa
Currently working on:
  • Winterwolves "Planet Stronghold 2" - RPG Framework: Phase II


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Giovedi, Graph, HeavenlyJoker


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group