Blocked on inserting the switchbot

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
Rokys091
Nou Venit

Nou Venit
Mesaje: 1
Membru din: 08 Sep 2016, 23:57
Server: LocMt2
Regat: Chunjo
Aprecieri: 1  
Mulţumiri: 0
Medalii

Hi everyone, I'm inserting the switchbot into my server client but I'm locked up on a part I can not understand, basically I have to put the weapon in the slot and insert the bonus slot in the other slot but I can not implement this part in script.phyton. Place here the py of the window
import uiScriptLocale
import item

LOCALE_PATH = uiScriptLocale.WINDOWS_PATH
ROOT_PATH = "d:/ymir work/ui/public/"

window = {
	"name" : "SwitchWindow",

	"x" : 300,
	"y" : 100,

	"style" : ("movable", "float",),

	"width" : 256,
	"height" : 435,

	"children" :
	(
								
		{
			"name" : "board",
			"type" : "board",
			"style" : ("attach",),

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

			"width" : 236,
			"height" : 435,
			
			"children" :
			(
				## Title
				{
					"name" : "TitleBar",
					"type" : "titlebar",
					"style" : ("attach",),

					"x" : 6,
					"y" : 6,

					"width" : 224,
					"color" : "yellow",

					"children" :
					(
						{ "name":"TitleName", "type":"text", "x":120, "y":3, "text":"Cambia Bonus", "text_horizontal_align":"center", },
					),
				},

				## Equipment Slot
				{
					"name" : "Costume_Base",
					"type" : "image",

					"x" : 13,
					"y" : 38,
					
					"image" : "locale/it/ui/fondswitch.tga",					

					"children" :
					(

						{
							"name" : "switchslot",
							"type" : "slot",

							"x" : 3,
							"y" : 3,

							"width" : 170,
							"height" : 145,

							"slot" : (
										{"index":0, "x":51, "y":16, "width":32, "height":96},
										{"index":1, "x":140, "y":72, "width":32, "height":32},
									),
						},
					),
				},
				{ 
					"name":"Skill_Active_Title_Bar", 
					"type":"horizontalbar", 
					"x":13, 
					"y":198, 
					"width":210,
					"children" :
					(
						{ "name":"Active_Skill_Point_Value", "type":"text", "x":110, "y":1, "text":"Bonus", "r":1.0, "g":1.0, "b":1.0, "a":1.0, "text_horizontal_align":"center" },
					),
				},
				## bonus1
				{
					"name" : "character_board",
					"type" : "thinboard",

					"x" : 13,
					"y" : 220,

					"width" : 210,
					"height" : 30 ,
					"children" :
					(
						{
							"name" : "bonus1",
							"type" : "text",

							"x" : 0,
							"y" : 0,
							"r":0.6911,
							"g":0.8754,
							"b":0.7068,
							"a":1.0,

							"text" : "",

							"all_align" : "center",
						},
					),
				},
				## bonus2
				{
					"name" : "character_board",
					"type" : "thinboard",

					"x" : 13,
					"y" : 255,

					"width" : 210,
					"height" : 30 ,
					"children" :
					(
						{
							"name" : "bonus2",
							"type" : "text",

							"x" : 0 ,
							"y" : 0,
							"r":0.6911,
							"g":0.8754,
							"b":0.7068,
							"a":1.0,

							"text" : "",

							"all_align" : "center",
						},
					),
				},
				## bonus3
				{
					"name" : "character_board",
					"type" : "thinboard",

					"x" : 13,
					"y" : 290,

					"width" : 210,
					"height" : 30 ,
					"children" :
					(
						{
							"name" : "bonus3",
							"type" : "text",

							"x" : 0 ,
							"y" : 0,
							"r":0.6911,
							"g":0.8754,
							"b":0.7068,
							"a":1.0,

							"text" : "",

							"all_align" : "center",
						},
					),
				},
				## bonus4
				{
					"name" : "character_board",
					"type" : "thinboard",

					"x" : 13,
					"y" : 325,

					"width" : 210,
					"height" : 30 ,
					"children" :
					(
						{
							"name" : "bonus4",
							"type" : "text",

							"x" : 0 ,
							"y" : 0,
							"r":0.6911,
							"g":0.8754,
							"b":0.7068,
							"a":1.0,

							"text" : "",

							"all_align" : "center",
						},
					),
				},
				## bonus5
				{
					"name" : "character_board",
					"type" : "thinboard",

					"x" : 13,
					"y" : 360,

					"width" : 210,
					"height" : 30 ,
					"children" :
					(
						{
							"name" : "bonus5",
							"type" : "text",

							"x" : 0 ,
							"y" : 0,
							"r":0.6911,
							"g":0.8754,
							"b":0.7068,
							"a":1.0,

							"text" : "",

							"all_align" : "center",
						},
					),
				},
				{
					"name" : "gira_bonus",
					"type" : "button",

					"x" : 80,
					"y" : 400,

					"text" : "Gira",

					"default_image" : ROOT_PATH + "Large_Button_01.sub",
					"over_image" : ROOT_PATH + "Large_Button_02.sub",
					"down_image" : ROOT_PATH + "Large_Button_03.sub",
				},
			),
		},
	),
}
Are slots "switchslot" as integrating them into py script for running the turn? Thanks to who responds.
Avatar utilizator
ZNF
Membru Club

Membru Club
Mesaje: 1953
Membru din: 16 Feb 2014, 10:09
Aprecieri: 15  
Mulţumiri: 110  
Discord: Copiază ID
Medalii

Subiect inactiv,arhivat.
Închis
Răspunsuri
2
Vizualizări
416
Răspunsuri
5
Vizualizări
562
Răspunsuri
4
Vizualizări
460

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Baidu [Spider] și 129 vizitatori