Images Posititions

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
MioSegami
Regular
Posts: 189
Joined: Thu Nov 15, 2012 11:40 pm
Projects: PATUKA PRIVATE PARADISE
Organization: BlueAngelService
Contact:

Images Posititions

#1 Post by MioSegami » Sat Jan 26, 2013 4:36 pm

Alright for once I got the hand of making save and loading screen... xDD
The problem is the screen shot is out of place and it bothers me T^T any Idea? I'll put a screenshot.

and here is my code for the entire save and load screen :)

Code: Select all

screen load_save_slot:
    $ file_text = "%2s. %s\n  %s" % (
                        FileSlotName(number, 4),
                        FileTime(number, empty=_("Empty Slot.")),
                        FileSaveName(number))

    add FileScreenshot(number) xpos 61 ypos 69 
    text file_text xpos 215 ypos 92 size 18 color "#261d0c"
    
screen file_picker:
    
    imagemap:
            ground "textbox/sl_ground.png"
            idle "textbox/sl_ground.png"
            hover "textbox/sl_hovered.png"
            selected_idle "textbox/sl_idle.png"
            
            hotspot (634,28,30,36) clicked FilePage(1)
            hotspot (683,28,38,36) clicked FilePage(2)
            hotspot (740,28,35,36) clicked FilePage(3)
            hotspot (794,28,37,36) clicked FilePage(4)
            hotspot (849,28,44,36) clicked FilePage(5)
            hotspot (913,28,39,36) clicked FilePage(6)
            hotspot (969,28,37,36) clicked FilePage(7)
            hotspot (1027,28,34,36) clicked FilePage(8)
            hotspot (1075,28,39,36) clicked FilePage(9)
            hotspot (1129,28,50,36) clicked FilePage(10)

            hotspot (35,117,530,282) clicked FileAction(1):
                use load_save_slot(number=1)
            hotspot (698,117,542,282) clicked FileAction(2):
                use load_save_slot(number=2)
            hotspot (35,433,530,276) clicked FileAction(3):
                use load_save_slot(number=3)
            hotspot (698,424,524,285) clicked FileAction(4):
                use load_save_slot(number=4)
                
            hotspot (565,134,118,48) action ShowMenu("save")                
            hotspot (565,199,133,48) action ShowMenu("load")
            hotspot (565,284,133,44) action MainMenu()
            hotspot (565,359,133,50) action ShowMenu("preferences")
            hotspot (565,433,133,52) action Return()
            hotspot (565,502,133,53) action Quit()
    
screen save:
    # This ensures that any other menu screen is replaced.
    tag menu

    use file_picker
    add "textbox/SL_save.png"

screen load:
    # This ensures that any other menu screen is replaced.
    tag menu

    use file_picker
    add "textbox/SL_load.png"

init -2 python:
    style.file_picker_frame = Style(style.menu_frame)

    style.file_picker_nav_button = Style(style.small_button)
    style.file_picker_nav_button_text = Style(style.small_button_text)

    style.file_picker_button = Style(style.large_button)
    style.file_picker_text = Style(style.large_button_text)
    config.thumbnail_width = 230
    config.thumbnail_height =214
Attachments
Capture.JPG
Image
CLICK IT------------->viewtopic.php?f=43&t=40639&p=430149#p430149
Projects: PATUKA PRIVATE ISLAND
Story: 15% complete
Script: 0%
Art: 35%
Outline: 15%
Code: 10%

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Images Posititions

#2 Post by Alex » Sat Jan 26, 2013 9:19 pm

I suppose it's the result of this line

Code: Select all

add FileScreenshot(number) xpos 61 ypos 69
try to change the positions.

Post Reply

Who is online

Users browsing this forum: Alex