Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Release]Ticket System v1.2 Von Shang
#1
[Image: maxresdefault.jpg]


Show ContentDownload:
Reply
#2
Photo 
systemdialog.py 

file elejét módosísd így:

Code:
window = {
    "name" : "SystemDialog",
    "style" : ("float",),

    "x" : (SCREEN_WIDTH  - 200) /2,
    "y" : (SCREEN_HEIGHT - 328) /2,

    "width" : 200,
    "height" : 328,

    "children" :
    (
        {
            "name" : "board",
            "type" : "thinboard",

            "x" : 0,
            "y" : 0,

            "width" : 200,
            "height" : 328,

            "children" :


keres:

Code:
"name" : "cancel_button",


alá:

Code:
                {
                    "name" : "support_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 257,

                    "text" : "Ticket rendszer",

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },


uisystem.py

add hozzá:

Code:
import uiticket
import event


keres:

Code:
self.GetChild("cancel_button").SAFE_SetEvent(self.Close)


alá:

Code:
self.GetChild("support_button").SAFE_SetEvent(self.OpenTicketWindow)


keres:

Code:
def __ClickHelpButton(self):


alá:

Code:
    def OpenTicketWindow(self):
        constInfo.Tickets['QCMD'] = 'OPEN#'
        event.QuestButtonClick(constInfo.Tickets['QID'])



Ez csak egy gyors skicc, de ez alapján menni fog bárkinek a gomb berakása, ha át akarja helyezni, stb, gondolom menni fog

és a kép így a gombról:

You are not allowed to view links. Register or Login to view.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)