*Problemă/Întrebare: Salutare , am si eu erroare resepectiva in client Poza 1 Am acele fisiere bagate in uiscrip/offlineshop etc etc iar in ui.py pe linia respectiva nu apare nimic..... iar in offlineshopbuild imi da check pe acel tabel...
Tipologie server:
*Resursă folosită:Offline shop Dracarys p2
*ServerFiles utilizat: Ceva clean de pe net.
*Syserr: Aveti in poza 1.
Poză:
*Detalii suplimentare:Poza 1. https://gyazo.com/89f1e73f8f5a95666131b6eab607c865
Poza 2. https://gyazo.com/de86fb11511107e60f1b286caf7565ed
Problem deschidere shop offline,
- ilgryu
-

- Mesaje: 452
- Membru din: 13 Dec 2013, 16:14
- Server: O sa fie si ala.
- Regat: Jinno
- Aprecieri: 225
- Mulţumiri: 23
- Discord: Copiază ID
- Contact:
- ilgryu
-

- Mesaje: 452
- Membru din: 13 Dec 2013, 16:14
- Server: O sa fie si ala.
- Regat: Jinno
- Aprecieri: 225
- Mulţumiri: 23
- Discord: Copiază ID
- Contact:
class OfflineShopBuilder(ui.ScriptWindow):
def __init__(self):
ui.ScriptWindow.__init__(self)
self.itemStock = {}
self.tooltipItem = None
self.priceInputBoard = None
self.title = ""
self.thinboard=None
self.shopVnum = 0
self.shopTitle = 0
self.isLoaded = 0
self.LoadWindow()
def __del__(self):
ui.ScriptWindow.__del__(self)
#import dbg
#dbg.TraceError("Hi from OfflineShopBuilder")
def SetItemToolTip(self, tooltipItem): # Class Tooltip
self.tooltipItem = proxy(tooltipItem)
def LoadWindow(self):
if self.isLoaded:
return
self.isLoaded=1
try:
pyScrLoader = ui.PythonScriptLoader()
pyScrLoader.LoadScriptFile(self, "UIScript/Offlineshop/OfflineShopBuilder.py")
self.GetChild("FirstButton").SetEvent(ui.__mem_func__(self.OnOk))
self.GetChild("SecondButton").SetEvent(ui.__mem_func__(self.CloseReal))
self.GetChild("Board").SetCloseEvent(ui.__mem_func__(self.CloseReal))
self.GetChild("ItemSlot").SetSelectEmptySlotEvent(ui.__mem_func__(self.OnSelectEmptySlot))
self.GetChild("ItemSlot").SAFE_SetButtonEvent("LEFT", "EXIST", self.OnSelectItemSlot)
self.GetChild("ItemSlot").SAFE_SetButtonEvent("RIGHT", "EXIST", self.OnSelectItemSlot)
self.GetChild("ItemSlot").SetOverInItemEvent(ui.__mem_func__(self.OnOverInItem))
self.GetChild("ItemSlot").SetOverOutItemEvent(ui.__mem_func__(self.OnOverOutItem))
self.GetChild("ItemSlot2").SetSelectEmptySlotEvent(ui.__mem_func__(self.OnSelectEmptySlotNew))
self.GetChild("ItemSlot2").SAFE_SetButtonEvent("LEFT", "EXIST", self.OnSelectItemSlotNew)
self.GetChild("ItemSlot2").SAFE_SetButtonEvent("RIGHT", "EXIST", self.OnSelectItemSlotNew)
self.GetChild("ItemSlot2").SetOverInItemEvent(ui.__mem_func__(self.OnOverInItemNew))
self.GetChild("ItemSlot2").SetOverOutItemEvent(ui.__mem_func__(self.OnOverOutItem))
self.GetChild("title_back_btn").SetEvent(ui.__mem_func__(self.TitleBack))
self.GetChild("title_next_btn").SetEvent(ui.__mem_func__(self.TitleNext))
self.GetChild("shop_back_btn").SetEvent(ui.__mem_func__(self.ShopBack))
self.GetChild("shop_next_btn").SetEvent(ui.__mem_func__(self.ShopNext))
self.GetChild("shop_back_btn").Hide()
self.GetChild("title_back_btn").Hide()
renderTarget.SetBackground(1, "d:/ymir work/ui/game/myshop_deco/model_view_bg.sub")
renderTarget.SetVisibility(1, True)
except:
exception.Abort("OfflineShopBuilderWindow.LoadWindow.LoadObject")
asta e functia nu vad nimic in neregula cu ea imi da la title_back_btn ....- ilgryu
-

- Mesaje: 452
- Membru din: 13 Dec 2013, 16:14
- Server: O sa fie si ala.
- Regat: Jinno
- Aprecieri: 225
- Mulţumiri: 23
- Discord: Copiază ID
- Contact:
- NoNNeX
-

- Mesaje: 287
- Membru din: 27 Mai 2022, 11:48
- Server: -
- Regat: Jinno
- Aprecieri: 161
- Mulţumiri: 150
- Rezolvări prob.: 4
- Discord: Copiază ID
- ilgryu
-

- Mesaje: 452
- Membru din: 13 Dec 2013, 16:14
- Server: O sa fie si ala.
- Regat: Jinno
- Aprecieri: 225
- Mulţumiri: 23
- Discord: Copiază ID
- Contact:
import localeInfo
ROOT = "d:/ymir work/ui/game/offlineshop/"
ROOT_PRIVATESHOP = "d:/ymir work/ui/game/privatesearch/"
window = {
"name" : "OfflineShopBuilder",
"x" : 0,
"y" : 0,
"style" : ("float","movable"),
"width" : 184*2-15+195,
"height" : 295+26+30,
"children" :
(
{
"name" : "Board",
"type" : "board_with_titlebar",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 184*2-15+195,
"height" : 295+26+30,
"title" : localeInfo.OFFLINE_SHOP_TITLE,
"children" :
(
{
"name" : "MainWindow",
"type" : "thinboard",
"x" : 10,
"y" : 30,
"width" : 184*2-15+175,
"height" : 295+15,
"children" :
(
{
"name" : "NameSlot",
"type" : "slotbar",
"x" : 5,
"y" : 5,
"width" : 250,
"height" : 25,
"children" :
(
{
"name" : "NameLine",
"type" : "editline",
"x" : 3,
"y" : 5,
"width" : 250,
"height" : 20,
"input_limit" : 35,
"text" : "....",
},
),
},
{
"name" : "Money_Slot",
"type" : "slotbar",
"x" : 5+250+10,
"y" : 5,
"width" : 90 + 97,
"height" : 25,
"children" :
(
{
"name":"Money_Icon",
"type":"image",
"x":3,
"y":3,
"image":"d:/ymir work/ui/game/windows/money_icon.tga",
},
{
"name" : "Money",
"type" : "text",
"x" : 3,
"y" : 5,
"horizontal_align" : "right",
"text_horizontal_align" : "right",
"text" : "0",
"fontname" : "Tahoma:15",
},
),
},
{
"name" : "FirstButton",
"type" : "button",
"x" : 5+250+10+90+97+40,
"y": 5,
"width" : 61,
"height" : 21,
"default_image" : ROOT+"decoration_0.tga",
"over_image" : ROOT+"decoration_0.tga",
"down_image" : ROOT+"decoration_1.tga",
#"default_image" : ROOT+"ok_0.tga",
#"over_image" : ROOT+"ok_1.tga",
#"down_image" : ROOT+"ok_0.tga",
"tooltip_text" : localeInfo.OK,
},
{
"name" : "SecondButton",
"type" : "button",
"x" : 5+250+10+90+97+5,
"y": 5,
"width" : 61,
"height" : 21,
"default_image" : ROOT+"close_shop_0.tga",
"over_image" : ROOT+"close_shop_0.tga",
"down_image" : ROOT+"close_shop_1.tga",
#"default_image" : ROOT+"cancel_0.tga",
#"over_image" : ROOT+"cancel_1.tga",
#"down_image" : ROOT+"cancel_0.tga",
"tooltip_text" : localeInfo.CANCEL,
},
{
"name" : "RenderTarget",
"type" : "render_target",
"x" : 10,
"y" : 34 + 30-20,
"width" : 196,
"height" : 8*32, #306
"index" : 1,
"children" :
(
{
"name" : "title_back_btn",
"type" : "button",
"x" : 5,
"y" : 30,
"default_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_01.sub",
"over_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_02.sub",
"down_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_01.sub",
#"default_image" : ROOT+"left_direction_0.tga",
#"over_image" : ROOT+"left_direction_1.tga",
#"down_image" : ROOT+"left_direction_0.tga",
},
{
"name" : "title_next_btn",
"type" : "button",
"x" : 175,
"y" : 32,
"default_image" : ROOT_PRIVATESHOP + "private_last_next_btn_01.sub",
"over_image" : ROOT_PRIVATESHOP + "private_last_next_btn_02.sub",
"down_image" : ROOT_PRIVATESHOP + "private_last_next_btn_01.sub",
#"default_image" : ROOT+"right_direction_0.tga",
#"over_image" : ROOT+"right_direction_1.tga",
#"down_image" : ROOT+"right_direction_0.tga",
},
{
"name" : "shop_back_btn",
"type" : "button",
"x" : 10,
"y" : 150,
"default_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_01.sub",
"over_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_02.sub",
"down_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_01.sub",
#"default_image" : ROOT+"left_direction_0.tga",
#"over_image" : ROOT+"left_direction_1.tga",
#"down_image" : ROOT+"left_direction_0.tga",
},
{
"name" : "shop_next_btn",
"type" : "button",
"x" : 165,
"y" : 150,
"default_image" : ROOT_PRIVATESHOP + "private_last_next_btn_01.sub",
"over_image" : ROOT_PRIVATESHOP + "private_last_next_btn_02.sub",
"down_image" : ROOT_PRIVATESHOP + "private_last_next_btn_01.sub",
#"default_image" : ROOT+"right_direction_0.tga",
#"over_image" : ROOT+"right_direction_1.tga",
#"down_image" : ROOT+"right_direction_0.tga",
},
),
},
{
"name" : "ItemSlot",
"type" : "grid_table",
"x" : 5+196,
"y" : 34 + 25-20,
"start_index" : 0,
"x_count" : 5,
"y_count" : 8,
"x_step" : 32,
"y_step" : 32,
"image" : "d:/ymir work/ui/public/Slot_Base.sub",
},
{
"name" : "ItemSlot2",
"type" : "grid_table",
"x" : 5+196+(32*5),
"y" : 34 + 25-20,
"start_index" : 0,
"x_count" : 5,
"y_count" : 8,
"x_step" : 32,
"y_step" : 32,
"image" : "d:/ymir work/ui/public/Slot_Base.sub",
},
),
},
),
},
),
}
asta e tot... e pus bine in ROOT_PRIVATESHOP = "d:/ymir work/ui/game/privatesearch/"- ilgryu
-

- Mesaje: 452
- Membru din: 13 Dec 2013, 16:14
- Server: O sa fie si ala.
- Regat: Jinno
- Aprecieri: 225
- Mulţumiri: 23
- Discord: Copiază ID
- Contact:
Problema rezolvata pe langa render /esarfe etc erau mai multe mult mai multe....
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 4 vizitatori