Reborn System 0.1 VegaS .

Totalitatea subiectelor care nu respectă regulamentul vor fi stocate aici.
Închis
Avatar utilizator
DAM0NN
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 143
Membru din: 11 Apr 2018, 17:47
Server: #
Regat: Chunjo
Aprecieri: 59  
Mulţumiri: 332  
Medalii

#Șters
Ultima oară modificat 23 Iun 2018, 20:17 de către DAM0NN, modificat 1 dată în total.
Imagine
Afișează semnătura
Avatar utilizator
.Fujix3
Nou Venit

Nou Venit
Mesaje: 3
Membru din: 19 Mai 2018, 21:35
Regat: Jinno
Aprecieri: 0
Mulţumiri: 0
Medalii

0622 02:45:21659 :: File "
0622 02:45:21659 :: <string>
0622 02:45:21659 :: ", line
0622 02:45:21659 :: 377
0622 02:45:21659 ::

0622 02:45:21659 ::
0622 02:45:21659 :: self.UpdateFunction_C()
0622 02:45:21659 ::


0622 02:45:21659 :: ^

0622 02:45:21659 :: SyntaxError
0622 02:45:21659 :: :
0622 02:45:21659 :: invalid syntax
Avatar utilizator
chris90909090
Nou Venit

Nou Venit
Mesaje: 41
Membru din: 14 Iun 2015, 11:42
Aprecieri: 332  
Mulţumiri: 1  
Medalii

invalid syntax

check tabs
Avatar utilizator
K3RN3L
Utilizator interzis !

Utilizator interzis !
Mesaje: 597
Membru din: 01 Feb 2017, 18:44
Server: N-am
Regat: Chunjo
Aprecieri: 106  
Mulţumiri: 141  
Medalii

Avatar utilizator
.Fujix3
Nou Venit

Nou Venit
Mesaje: 3
Membru din: 19 Mai 2018, 21:35
Regat: Jinno
Aprecieri: 0
Mulţumiri: 0
Medalii

It's the Orginal uiReborn.py, from the Release
import ui
import player
import chat
import app
import wndMgr
import uiToolTip
import uiCommon
import constInfo
import mouseModule
import time
import localeInfo
import grp
import net 
import playerSettingModule
import getclass
import background
import os
import uitip
from _weakref import proxy

# POSITIONS #
infoNumber_x = 400 
infoNumber_y = 75 	
infoText_x = 138
infoText_y = 15
infoStatus_x = 605
infoStatus_y = 155
infoButton_x = 10
infoButton_y = 265
# POSITIONS #

pShow = 0
infoPercentage_x = 0
infoPercentage_y = 100

REBORN_FACE_LIST = {
	playerSettingModule.RACE_WARRIOR_M	: "d:/ymir work/ui/public/reborn_image/face/warriorM.tga",
	playerSettingModule.RACE_WARRIOR_W	: "d:/ymir work/ui/public/reborn_image/face/warriorF.tga",
	playerSettingModule.RACE_ASSASSIN_M	: "d:/ymir work/ui/public/reborn_image/face/ninjaM.tga",
	playerSettingModule.RACE_ASSASSIN_W	: "d:/ymir work/ui/public/reborn_image/face/ninjaF.tga",
	playerSettingModule.RACE_SURA_M		: "d:/ymir work/ui/public/reborn_image/face/suraM.tga",
	playerSettingModule.RACE_SURA_W		: "d:/ymir work/ui/public/reborn_image/face/suraF.tga",
	playerSettingModule.RACE_SHAMAN_M	: "d:/ymir work/ui/public/reborn_image/face/shamanM.tga",
	playerSettingModule.RACE_SHAMAN_W	: "d:/ymir work/ui/public/reborn_image/face/shamanF.tga",
	#playerSettingModule.RACE_WOLFMAN_M	: "icon/face/wolfman_m.tga",
}
REBORN_IMAGE_LIST = ["d:/ymir work/ui/public/reborn_image/complete.png", "d:/ymir work/ui/public/reborn_image/necomplete.png", "d:/ymir work/ui/public/XLarge_Button_01.sub", "d:/ymir work/ui/public/XLarge_Button_02.sub", "d:/ymir work/ui/public/XLarge_Button_03.sub", "d:/ymir work/ui/public/reborn_image/anonymous_1.png","d:/ymir work/ui/public/reborn_image/anonymous_2.png","d:/ymir work/ui/public/reborn_image/anonymous_3.png"]
REBORN_TOOLTIP_COLOR = [0xffffffcc, 0xffe6ff5f, 0xff88f6ff, 0xffff2121]

REBORN_SEND_MESSAGE = (localeInfo.REBORN_MESSAGE_1, localeInfo.REBORN_MESSAGE_2)	
REBORN_NAME_GRADE = (localeInfo.REBORN_NAME_GRADE_0, localeInfo.REBORN_NAME_GRADE_1, localeInfo.REBORN_NAME_GRADE_2, localeInfo.REBORN_NAME_GRADE_3)
REBORN_NUMBER_BONUS = (localeInfo.REBORN_TEXT_BONUS_1, localeInfo.REBORN_TEXT_BONUS_2, localeInfo.REBORN_TEXT_BONUS_3, localeInfo.REBORN_TEXT_BONUS_4)
REBORN_TOOLTIP_COMPLETE = (localeInfo.REBORN_TOOLTIP_COMPLETE_1, localeInfo.REBORN_TOOLTIP_COMPLETE_2, localeInfo.REBORN_TOOLTIP_COMPLETE_3)
REBORN_TOOLTIP_DISABLE = (localeInfo.REBORN_TOOLTIP_UNFINISHED_1, localeInfo.REBORN_TOOLTIP_UNFINISHED_2, localeInfo.REBORN_TOOLTIP_UNFINISHED_3)					
REBORN_INFO_TEXT = (localeInfo.REBORN_SLOT_1, localeInfo.REBORN_SLOT_2, localeInfo.REBORN_SLOT_3, localeInfo.REBORN_TITLE, localeInfo.REBORN_INFO, localeInfo.REBORN_INFO_ACTIVE, localeInfo.REBORN_INFO_GRADE, localeInfo.REBORN_INFO_BTN_1, localeInfo.REBORN_INFO_BTN_2, localeInfo.REBORN_INFO_BTN_3)			
REBORN_BONUS_NAME = (localeInfo.REBORN_NAME_BONUS_1, localeInfo.REBORN_NAME_BONUS_2, localeInfo.REBORN_NAME_BONUS_3, localeInfo.REBORN_NAME_BONUS_4)

REBORN_BONUS_VALUE_1 = ("1000", "5", "8", "11")
REBORN_BONUS_VALUE_2 = ("2500", "8", "11", "14")
REBORN_BONUS_VALUE_3 = ("3000", "11", "14", "17")
REBORN_GLOBAL_TEXT = "|cFF6af200[ i ] [PASS]My server is grateful to have reached this level so quickly.With this important day for you, I asked you to provide this system of rebirth.We give you the chance to be[PASS]a player more valuable and be one of the best through this means. Dark souls and the souls of monsters real players will be afraid of you when you will finish all grades of[PASS]rebirth.This system has advantages and disadvantages course, you can find the[PASS]information in down line. Therefore I advise you to do this and not abandon it, do it[PASS]in time to be the best.[PASS][PASS]|cFFf0da03- Reset total additional skills[PASS]|cFFf0da03- Restore the total points collected[PASS]|cFFf0da03- Reset level which means that you will get the start server"

class RebornClass(ui.BoardWithTitleBar):
	def __init__(self):
		ui.BoardWithTitleBar.__init__(self)
		self.__BuildWindow()

	def __del__(self):
		ui.BoardWithTitleBar.__del__(self)

	def __BuildWindow(self):
		self.SetSize(720, 200)
		self.AddFlag('movable')
		self.AddFlag('float')
		self.SetTitleName(REBORN_INFO_TEXT[3])
		self.SetCloseEvent(ui.__mem_func__(self.Close))
		self.SetCenterPosition()
		
		self.modulePython = getclass.ClassModulePython()
		race = net.GetMainActorRace()	
		face_image = REBORN_FACE_LIST[race]
		
		self.BoardMessage = uiTip.BigBoard()
		self.BoardMessage.SetTop()
		
		self.ThinboardGlobal = ui.ThinBoard()
		self.ThinboardGlobal.SetParent(self)
		self.ThinboardGlobal.SetSize(350, 110)
		self.ThinboardGlobal.SetPosition(15, 55)
		self.ThinboardGlobal.Show()	
		
		self.sStatusDisable_a = self.modulePython.ExpandedImage(self, infoStatus_x, infoStatus_y, REBORN_IMAGE_LIST[1])	
		self.sStatusDisable_b = self.modulePython.ExpandedImage(self, infoStatus_x+40, infoStatus_y, REBORN_IMAGE_LIST[1])
		self.sStatusDisable_c = self.modulePython.ExpandedImage(self, infoStatus_x+40+40, infoStatus_y, REBORN_IMAGE_LIST[1])
		
		self.sStatusEnable_a = self.modulePython.ExpandedImage(self, infoStatus_x, infoStatus_y, REBORN_IMAGE_LIST[0])
		self.sStatusEnable_b = self.modulePython.ExpandedImage(self, infoStatus_x+40, infoStatus_y, REBORN_IMAGE_LIST[0])
		self.sStatusEnable_c = self.modulePython.ExpandedImage(self, infoStatus_x+40+40, infoStatus_y, REBORN_IMAGE_LIST[0])	

		sHide = [self.sStatusEnable_a,self.sStatusEnable_b,self.sStatusEnable_c]
		for i in sHide:
			i.Hide()	
		
		self.sSlotBar_a = self.modulePython.TextLine(self.ThinboardGlobal, REBORN_INFO_TEXT[0], infoText_x, infoText_y, self.modulePython.RGB(255, 155, 122))	
		self.sSlotBar_b = self.modulePython.TextLine(self.ThinboardGlobal, REBORN_INFO_TEXT[1], infoText_x, infoText_y+30, self.modulePython.RGB(255, 155, 122))		
		self.sSlotBar_c = self.modulePython.TextLine(self.ThinboardGlobal, REBORN_INFO_TEXT[2], infoText_x, infoText_y+30+30, self.modulePython.RGB(255, 155, 122))	
		# Numbering bonus
		self.sInfoBonusNumber_a = self.modulePython.TextLine(self, REBORN_NUMBER_BONUS[0], infoNumber_x, infoNumber_y, self.modulePython.RGB(41, 252, 167))				
		self.sInfoBonusNumber_b = self.modulePython.TextLine(self, REBORN_NUMBER_BONUS[1], infoNumber_x, infoNumber_y+20, self.modulePython.RGB(41, 252, 167))				
		self.sInfoBonusNumber_c = self.modulePython.TextLine(self, REBORN_NUMBER_BONUS[2], infoNumber_x, infoNumber_y+20+20, self.modulePython.RGB(41, 252, 167))				
		self.sInfoBonusNumber_d = self.modulePython.TextLine(self, REBORN_NUMBER_BONUS[3], infoNumber_x, infoNumber_y+20+20+20, self.modulePython.RGB(41, 252, 167))	
		# Name bonus
		self.sInfoBonusType_a = self.modulePython.TextLine(self, REBORN_BONUS_NAME[0], infoNumber_x+52, infoNumber_y, self.modulePython.RGB(252, 231, 41))				
		self.sInfoBonusType_b = self.modulePython.TextLine(self, REBORN_BONUS_NAME[1], infoNumber_x+52, infoNumber_y+20, self.modulePython.RGB(252, 231, 41))				
		self.sInfoBonusType_c = self.modulePython.TextLine(self, REBORN_BONUS_NAME[2], infoNumber_x+52, infoNumber_y+20+20, self.modulePython.RGB(252, 231, 41))				
		self.sInfoBonusType_d = self.modulePython.TextLine(self, REBORN_BONUS_NAME[3], infoNumber_x+52, infoNumber_y+20+20+20, self.modulePython.RGB(252, 231, 41))	
		# Value bonus
		self.sGradeBonus1_a = self.modulePython.SlotWithText(self, REBORN_BONUS_VALUE_1[0], infoNumber_x+200, infoNumber_y, 30,15) # Get value bonus -> Max.HP
		self.sGradeBonus1_b = self.modulePython.SlotWithText(self, REBORN_BONUS_VALUE_1[1], infoNumber_x+200, infoNumber_y+20, 30,15) # Get value bonus -> Semi-humans	
		self.sGradeBonus1_c = self.modulePython.SlotWithText(self, REBORN_BONUS_VALUE_1[2], infoNumber_x+200, infoNumber_y+20+20, 30,15) # Get value bonus -> Critical chance
		self.sGradeBonus1_d = self.modulePython.SlotWithText(self, REBORN_BONUS_VALUE_1[3], infoNumber_x+200, infoNumber_y+20+20+20, 30,15) # Get value bonus -> Penetration chance
		self.sGradeBonus2_a = self.modulePython.SlotWithText(self, REBORN_BONUS_VALUE_2[0], infoNumber_x+200+40, infoNumber_y, 30,15) # Get value bonus -> Max.HP
		self.sGradeBonus2_b = self.modulePython.SlotWithText(self, REBORN_BONUS_VALUE_2[1], infoNumber_x+200+40, infoNumber_y+20, 30,15) # Get value bonus -> Semi-humans	
		self.sGradeBonus2_c = self.modulePython.SlotWithText(self, REBORN_BONUS_VALUE_2[2], infoNumber_x+200+40, infoNumber_y+20+20, 30,15) # Get value bonus -> Critical chance
		self.sGradeBonus2_d = self.modulePython.SlotWithText(self, REBORN_BONUS_VALUE_2[3], infoNumber_x+200+40, infoNumber_y+20+20+20, 30,15) # Get value bonus -> Penetration chance
		self.sGradeBonus3_a = self.modulePython.SlotWithText(self, REBORN_BONUS_VALUE_3[0], infoNumber_x+200+40+40, infoNumber_y, 30,15) # Get value bonus -> Max.HP
		self.sGradeBonus3_b = self.modulePython.SlotWithText(self, REBORN_BONUS_VALUE_3[1], infoNumber_x+200+40+40, infoNumber_y+20, 30,15) # Get value bonus -> Semi-humans	
		self.sGradeBonus3_c = self.modulePython.SlotWithText(self, REBORN_BONUS_VALUE_3[2], infoNumber_x+200+40+40, infoNumber_y+20+20, 30,15) # Get value bonus -> Critical chance
		self.sGradeBonus3_d = self.modulePython.SlotWithText(self, REBORN_BONUS_VALUE_3[3], infoNumber_x+200+40+40, infoNumber_y+20+20+20, 30,15) # Get value bonus -> Penetration chance
		# Button to accept reborn
		self.buttonGetToAccept = self.modulePython.Button(self, REBORN_INFO_TEXT[4], REBORN_INFO_TEXT[5], 400, 164, self.MakeReborn, REBORN_IMAGE_LIST[2], REBORN_IMAGE_LIST[3], REBORN_IMAGE_LIST[4])	
		self.buttonShowAnonymous = self.modulePython.Button(self, "", REBORN_INFO_TEXT[9], 675, 11, self.ShowFaceAnonymous, "d:/ymir work/ui/game/windows/btn_plus_up.sub", "d:/ymir work/ui/game/windows/btn_plus_over.sub", "d:/ymir work/ui/game/windows/btn_plus_down.sub")	
		# Set image face
		self.sSetImageFace = ui.ImageBox()
		self.sSetImageFace.SetParent(self)
		self.sSetImageFace.SetPosition(35, 60)
		self.sSetImageFace.LoadImage(face_image)
		self.sSetImageFace.Show()
		# Text informations title from actual reborn and what bonus is give you
		self.sTitle = ui.TextLine()
		self.sTitle.SetFontName("Tahoma:17")
		self.sTitle.SetParent(self)
		self.sTitle.SetPosition(177,45)
		self.sTitle.SetText(REBORN_INFO_TEXT[6])
		self.sTitle.SetWindowHorizontalAlignCenter()
		self.sTitle.SetHorizontalAlignCenter()
		self.sTitle.SetOutline()
		self.sTitle.Show()
		# Make gauge with state reborn
		self.sPercentage = ui.Gauge()
		self.sPercentage.SetParent(self)
		self.sPercentage.SetPosition(25, 175)
		self.sPercentage.MakeGauge(325, "red")
		self.sPercentage.Show()

		self.GlobalLoad()	

	def MakeAnonymous(self):	
		net.SendChatPacket("/set_reborn anonymous") # Send command to server with argument anonymous for enable/disable reborn on name visible
		
	def ShowFaceAnonymous(self):
		global pShow
		if pShow == 0:
			pShow = 1
			k, v = player.GetReborn() # Get Function table actual reborn from src	
			if k == 3 and not constInfo.mStrAnonymous == 1:
				self.SetSize(830, 200)
				self.sTitle.SetPosition(165,45)
				self.buttonGetAnonymous = self.modulePython.Button(self, "", "", infoStatus_x+40+40+30, infoStatus_y-90, self.MakeAnonymous, REBORN_IMAGE_LIST[5], REBORN_IMAGE_LIST[6], REBORN_IMAGE_LIST[7])
		else:
			pShow = 0
			k, v = player.GetReborn() # Get Function table actual reborn from src	
			if k == 3 and not constInfo.mStrAnonymous == 1:
				self.SetSize(720, 200)
				self.sTitle.SetPosition(165,45)
				self.buttonGetAnonymous = self.modulePython.Button(self, "", "", infoStatus_x+40+40+30, infoStatus_y-90, self.MakeAnonymous, REBORN_IMAGE_LIST[5], REBORN_IMAGE_LIST[6], REBORN_IMAGE_LIST[7])
				self.buttonGetAnonymous.Hide()			
			
	def GlobalLoad(self):	
		if constInfo.mStrAnonymous == 1:
			self.SetSize(830, 200)
			self.buttonGetAnonymous = self.modulePython.Button(self, "", "", infoStatus_x+40+40+30, infoStatus_y-90, self.MakeAnonymous, REBORN_IMAGE_LIST[5], REBORN_IMAGE_LIST[6], REBORN_IMAGE_LIST[7])		

			self.slotBar_3 = self.modulePython.SlotWithText(self.sSlotBar_c, REBORN_NAME_GRADE[3], 100, 0, 100,18) # Get name from actual grade reborn	
			self.sPercentage.SetPercentage(infoPercentage_x+10+5+10+5+10+5+10+5+10+5+10+5+10,infoPercentage_y) # Update gauge to 100%
			
			sOpen = [self.sStatusEnable_a,self.sStatusEnable_b,self.sStatusEnable_c]
			sHide = [self.sStatusDisable_a,self.sStatusDisable_b,self.sStatusDisable_c]	
			for i in sOpen:
				i.Show()
			for i in sHide:
				i.Hide()	
				
	def MakeReborn(self):	
		k, v = player.GetReborn() # Get Function table actual reborn from src	
		if k == 3:
			self.Hide()
			self.sPopupFinish = uiCommon.PopupDialog()
			self.sPopupFinish.SetWidth(550)
			self.sPopupFinish.SetText(REBORN_SEND_MESSAGE[1])
			self.sPopupFinish.Show()
		else:
			self.Hide() # Closing the initial window of the X initial brand
			
			self.Background = ui.Bar()
			self.Background.AddFlag("attach")
			self.Background.AddFlag("not_pick")
			self.Background.SetPosition(0,0)
			self.Background.SetSize(wndMgr.GetScreenWidth(),wndMgr.GetScreenHeight())
			self.Background.SetColor(grp.GenerateColor(0.0, 0.0, 0.0, 0.71))
			self.Background.Show()
			
			self.RequestBoard = ui.BoardWithTitleBar()
			self.RequestBoard.SetTitleName(REBORN_INFO_TEXT[3])
			self.RequestBoard.SetCloseEvent(ui.__mem_func__(self.CoseBoardReborn))
			self.RequestBoard.SetParent(self.Background)
			self.RequestBoard.SetSize(400,300)
			self.RequestBoard.SetTop()
			self.RequestBoard.SetCenterPosition()
			self.RequestBoard.Show()
			
			self.TextInformations = ui.MultiTextLine()
			self.TextInformations.SetParent(self.RequestBoard)
			self.TextInformations.SetPosition(10,40)
			self.TextInformations.SetWidth(385)
			self.TextInformations.SetText(REBORN_GLOBAL_TEXT)
			self.TextInformations.SetTextHorizontalAlignCenter()
			self.TextInformations.Show()
			
			self.LineOnText = ui.Line()
			self.LineOnText.AddFlag("attach")
			self.LineOnText.AddFlag("not_pick")
			self.LineOnText.SetParent(self.RequestBoard)
			self.LineOnText.SetPosition(10,180)
			self.LineOnText.SetSize(385,0)
			self.LineOnText.SetColor(0xffffffff)
			self.LineOnText.Show()
			
			self.s_ActivateReborn = self.modulePython.Button(self.RequestBoard, REBORN_INFO_TEXT[7], REBORN_INFO_TEXT[7], infoButton_x, infoButton_y, self.AcceptReborn, REBORN_IMAGE_LIST[2], REBORN_IMAGE_LIST[3], REBORN_IMAGE_LIST[4])
			self.s_DeclineReborn = self.modulePython.Button(self.RequestBoard, REBORN_INFO_TEXT[8], REBORN_INFO_TEXT[8], infoButton_x+200, infoButton_y, self.DeclineReborn, REBORN_IMAGE_LIST[2], REBORN_IMAGE_LIST[3], REBORN_IMAGE_LIST[4])
		
	def DeclineReborn(self):
		sHide = [self.RequestBoard, # Hide window with accept and decline
						self.Background] # Hide black background that occupies the entire screen
		for i in sHide:
			i.Hide()
			
		self.Show() # After you have clicked on the button box Initial accept will return again
		
	def AcceptReborn(self):
		sHide = [self.RequestBoard, # Hide window with accept and decline
						self.Background] # Hide black background that occupies the entire screen
		for i in sHide:
			i.Hide()
			
		net.SendChatPacket("/set_reborn accept") # Send command to server with argument accept
		self.Show() # After you have clicked on the button box Initial accept will return again
		
	def OnPressEscapeKey(self):
		self.Close() # Close all the board when you press the Esc key
		
	def Destroy(self):
		self.Hide() # Destroy the initial window 
			
	def Close(self):
		self.Hide() # Closing the initial window of the X initial brand
		
	def CoseBoardReborn(self):
		sHide = [self.RequestBoard, # Hide window with accept and decline
						self.Background] # Hide black background that occupies the entire screen
		for i in sHide:
			i.Hide()
			
	def OpenBigNotice(self, message):	
		msg = int(message) # Get value with (int)
		if msg == 1:
			self.BoardMessage.SetTip(REBORN_SEND_MESSAGE[0] + REBORN_NAME_GRADE[1] + " !")
		elif msg == 2:	
			self.BoardMessage.SetTip(REBORN_SEND_MESSAGE[0] + REBORN_NAME_GRADE[2] + " !")		
		elif msg == 3:		
			self.BoardMessage.SetTip(REBORN_SEND_MESSAGE[0] + REBORN_NAME_GRADE[3] + " !")	
						
	def OpenArgument(self, reborn):
		arg = str(reborn) # Get value with (str)
		
		if arg == "reborn_1":
			self.OpenBigNotice(1)
		elif arg == "reborn_2":
			self.OpenBigNotice(1+1)
		elif arg == "reborn_3":
			self.OpenBigNotice(1+1+1)
		elif arg == "pro_0":
			constInfo.mStrAnonymous = 0
		elif arg == "pro_1":
			constInfo.mStrAnonymous = 1
						
	def UpdateFunction_NoneType(self):	
		self.slotBar_3 = self.modulePython.SlotWithText(self.sSlotBar_c, REBORN_NAME_GRADE[0], 100, 0, 100,18) # Get name from actual grade reborn	
		self.sPercentage.SetPercentage(infoPercentage_x,infoPercentage_y) # Remove complete gauge from reborn	
				
	def UpdateFunction_A(self):	
		self.sStatusDisable_a.Hide()
		self.sStatusEnable_a.Show()	
			
		self.slotBar_3 = self.modulePython.SlotWithText(self.sSlotBar_c, REBORN_NAME_GRADE[1], 100, 0, 100,18) # Get name from actual grade reborn
		self.sPercentage.SetPercentage(infoPercentage_x+10+5+10+5,infoPercentage_y) # Update gauge +30%
				
	def UpdateFunction_B(self):	
		sHide = [self.sStatusDisable_a,self.sStatusDisable_b]
		sOpen = [self.sStatusEnable_a,self.sStatusEnable_b]
		
		for i in sOpen:
			i.Show()
			
		for i in sHide:
			i.Hide()
			
		self.slotBar_3 = self.modulePython.SlotWithText(self.sSlotBar_c, REBORN_NAME_GRADE[2], 100, 0, 100,18) # Get name from actual grade reborn			
		self.sPercentage.SetPercentage(infoPercentage_x+10+5+10+5+10+5+10+5,infoPercentage_y) # Update gauge +60%
	
	def UpdateFunction_C(self):		
		sHide = [self.sStatusDisable_a,self.sStatusDisable_b,self.sStatusDisable_c]
		sOpen = [self.sStatusEnable_a,self.sStatusEnable_b,self.sStatusEnable_c]
		
		for i in sHide:
			i.Hide()
		
		for i in sOpen:
			i.Show()
			
		self.slotBar_3 = self.modulePython.SlotWithText(self.sSlotBar_c, REBORN_NAME_GRADE[3], 100, 0, 100,18) # Get name from actual grade reborn	
		self.sPercentage.SetPercentage(infoPercentage_x+10+5+10+5+10+5+10+5+10+5+10+5+10,infoPercentage_y) # Update gauge to 100%		
					
	def OnUpdate(self):	
		(mouseX, mouseY) = wndMgr.GetMousePosition()		
		
		if TRUE == self.sStatusEnable_a.IsIn():
			self.comp_1 = uiToolTip.ToolTip()
			self.comp_1.SetPosition(mouseX+50+50+50+25, mouseY-25-25-25-25)
			self.comp_1.AppendDescription(REBORN_TOOLTIP_COMPLETE[0], None, REBORN_TOOLTIP_COLOR[0])	
			
		if TRUE == self.sStatusEnable_b.IsIn():
			self.comp_2 = uiToolTip.ToolTip()
			self.comp_2.SetPosition(mouseX+50+50+50+25-40, mouseY-25-25-25-25)
			self.comp_2.AppendDescription(REBORN_TOOLTIP_COMPLETE[1], None, REBORN_TOOLTIP_COLOR[1])	
			
		if TRUE == self.sStatusEnable_c.IsIn():
			self.comp_3 = uiToolTip.ToolTip()
			self.comp_3.SetPosition(mouseX+50+50+50+25-40-40, mouseY-25-25-25-25)
			self.comp_3.AppendDescription(REBORN_TOOLTIP_COMPLETE[2], None, REBORN_TOOLTIP_COLOR[2])	
			
		if TRUE == self.sStatusDisable_a.IsIn():
			self.necomp_1 = uiToolTip.ToolTip()
			self.necomp_1.SetPosition(mouseX+50+50+50+25, mouseY-25-25-25-25)
			self.necomp_1.AppendDescription(REBORN_TOOLTIP_DISABLE[0], None, REBORN_TOOLTIP_COLOR[3])	
			
		if TRUE == self.sStatusDisable_b.IsIn():
			self.necomp_2 = uiToolTip.ToolTip()
			self.necomp_2.SetPosition(mouseX+50+50+50+25-40, mouseY-25-25-25-25)
			self.necomp_2.AppendDescription(REBORN_TOOLTIP_DISABLE[1], None, REBORN_TOOLTIP_COLOR[3])	
			
		if TRUE == self.sStatusDisable_c.IsIn():
			self.necomp_3 = uiToolTip.ToolTip()
			self.necomp_3.SetPosition(mouseX+50+50+50+25-40-40, mouseY-25-25-25-25)
			self.necomp_3.AppendDescription(REBORN_TOOLTIP_DISABLE[2], None, REBORN_TOOLTIP_COLOR[3])	

		k, v = player.GetReborn() # Get Function table actual reborn from src	
		
		self.slotBar_1 = self.modulePython.SlotWithText(self.sSlotBar_a, '' + player.GetName(), 100, 0, 100,18) # Get name update
		self.slotBar_2 = self.modulePython.SlotWithText(self.sSlotBar_b, '' + str(player.GetStatus(player.LEVEL)), 100, 0, 100,18)	# Get update from level text
		
		if constInfo.mStrAnonymous == 1:
			self.UpdateFunction_C()
			
		if k < 1: # If you not have active Reborn
			self.UpdateFunction_NoneType()
		if k == 1: # If you have active -> Reborn I
			self.UpdateFunction_A()
		if k == 2: # If you have active -> Reborn II
			self.UpdateFunction_B()
		if k == 3: # If you have active -> Reborn III
			self.UpdateFunction_C()
Avatar utilizator
F-l-o-r-i-n
Nivel 3

Nivel 3
Mesaje: 320
Membru din: 12 Ian 2018, 14:07
Server: Thrones2
Regat: Chunjo
Aprecieri: 44  
Mulţumiri: 713  
Medalii

Vin turcii baaa

S-au pus turcii pe treaba cu thor2.
Avatar utilizator
DAM0NN
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 143
Membru din: 11 Apr 2018, 17:47
Server: #
Regat: Chunjo
Aprecieri: 59  
Mulţumiri: 332  
Medalii

K3RN3L scrie:Ratat mic ce esti lasa sursa.
https://forum.turkmmo.com/konu/3646718- ... em-arsivi/
hahaha nabete dacă acolo crezi că au apărut prima oară mai informeazăte , logic că puneam sursa dacă erau de acolo , și pe turk au fost puse de Celeron .
Imagine
Afișează semnătura
Avatar utilizator
M. Andrei - Marian
Veteran

Veteran
Mesaje: 5692
Membru din: 05 Ian 2016, 15:30
Aprecieri: 302  
Mulţumiri: 958  
Medalii

Coș!
Închis
Răspunsuri
2
Vizualizări
629
Răspunsuri
7
Vizualizări
1986

Înapoi la “Arhivă”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 60 vizitatori