Forum | Will be modified!

You must be logged in to post Login Register

Search Forums:


 






Will be modified!

No Tags
UserPost

8:06 am
May 31, 2010


Matx

Roma (Italy)

Member

posts 104

Post edited 7:27 am – June 1, 2010 by Matx


After a careful analysis of the source code Pywright I changed two classes to make it more "realistic"
so I wanted to ask you, Saluk, if you could change the two classes listed below and adding these two pictures ^ _ ^

Script in Core.py


class press_button(fadesprite,gui.widget):
    def __init__(self,parent):
        self.normal = assets.open_art("general/crossex")[0]
        self.high = assets.open_art("general/crossex_high")[0]
        self.rect = [[0,0],[79,30]]
        self.highlight = False
        self.pos = [0,0]
        gui.widget.__init__(self,self.pos,[79,30],parent)
        self.width,self.height = 79,30
    def draw(self,dest):
        surf = {False:self.normal,True:self.high}[self.highlight is True]
        dest.blit(surf.subsurface(self.rect),self.pos)
    def click_down_over(self,mp):
        self.parent.k_z()

class present_button(fadesprite,gui.widget):
    def __init__(self,parent):
        self.normal = assets.open_art("general/crossex")[0]
        self.high = assets.open_art("general/crossex_high")[0]
        self.rect = [[0,30],[79,30]]
        self.highlight = False
        self.pos = [sw-79,0]
        gui.widget.__init__(self,self.pos,[79,30],parent)
        self.width,self.height = 79,30
    def draw(self,dest):
        surf = {False:self.normal,True:self.high}[self.highlight is True]
        dest.blit(surf.subsurface(self.rect),self.pos)
    def click_down_over(self,mp):
        self.parent.k_x()


Pictures:

and tell:

crossex     crossex_high

put they in art/general folder


Example:


I hope you will appreciate my advice ^ _ ^
Images and scripts by me


Hello World!!!

                                                                                                                                                                                             By MatxCool


ADD:


New discovered^_^:


Change ( always in core.py file )

line in class  evidence menu


self.present_button = present_button(self)

in

self.present_button = guiEvpresent()

and

adding this class


class guiEvpresent(sprite,gui.widget):
    def click_down_over(self,mp):
        self.k_space()
    def __init__(self,image=None,x=None,y=None,z=None,name=None):
        sprite.__init__(self)
        gui.widget.__init__(self)
        self.pri = -1000
        if not image:
            image = "general/evpresent"
        self.image = image
        self.unhighlight()
        self.pos = [0,sh-self.img.get_height()]
        if x is not None:
            self.pos[0] = x
        if y is not None:
            self.pos[1] = y
        if z is not None:
            self.z = z
        if name is not None:
            self.id_name = name
        gui.widget.__init__(self,self.pos,self.img.get_size())
    def highlight(self):
        self.load(self.image+"_high"+assets.appendgba)
    def unhighlight(self):
        self.load(self.image+assets.appendgba)
    def save(self):
        return ""
    def restore(self,s):
        pass
    def k_space(self):
        self.kill = 1
        print "only kill evpresent button"
    def update(self):
        return True


adding this image in art/general folder:

and tell her : evpresent

so the CR will have her button to show the evidence.


***Please comment^_^***


4:14 am
June 5, 2010


EliqueStudios

Burwood, Sydney, NSW, East Australia, Australia, Oceania, Southern Hemisphere, Earth,1st-3rd From The Sun, Solar System, Galaxy, Universe.

Member

posts 24

That Is Very Better Than It Is Now! saluk Must Include This In The Next Version!!!


Surprise!! The Hidden Text Returns!!!

7:00 pm
June 5, 2010


saluk

Admin

posts 144

Wont go in the next version (too much already in it and I still need to evaluate the change) but it might go in a later version. Nice work! One of the things I do like about the current version is being able to see the keyboard shortcuts. But it could be a toggle sort of thing.

12:04 pm
June 7, 2010


Matx

Roma (Italy)

Member

posts 104

Shortcuts are good ^ _ ^
However I wanted to ask if I send the 2 button (press & present) in lower-screen viewing experience they are activated only by keyboard and mouse has no effect!

I'm glad you liked it ^ _ ^


Hello world!!!

By

                                                                                                                                                                                                 MatxCool^_^

No Tags