C 1
chengdu
xranzei 1
xranzei
zendor2 1
zendor2
Bvural41 1
Bvural41
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Almira2 1
Almira2
romegames 1
romegames
D 1
delimuratt
melankolıa18 1
melankolıa18
shrpnl 1
shrpnl
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com

Dali Offshop Gui

  • Konuyu başlatan Konuyu başlatan nyami
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 11
  • Görüntüleme Görüntüleme 3K
5.00 yıldız(lar) 1 Değerlendirme Değerlendirenler

nyami

!𝓩𝓮𝓡𝓸
TM Üye
Katılım
22 Tem 2016
Konular
75
Mesajlar
1,406
Çözüm
65
Online süresi
2mo 18d
Reaksiyon Skoru
1,223
Altın Konu
0
TM Yaşı
9 Yıl 10 Ay 20 Gün
Başarım Puanı
234
MmoLira
5,669
DevLira
51
Ticaret - 0%
0   0   0

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!

#developmentpaylasimekibi


Market oluşturma bölümünü yeniden yazdım. Market gui ve yönetim panelini yeniden düzenledim ve 40 slotlu duruma getirdim.
Not: 40 slot için src de eski duruma getirilmesi gereken yerleri düzenleyin. Verdiğim kodların bir kısmında paylaştığım premium sistemi kodları var ben market oluşturma süresini ve gerekli parayı premium sistemine bağladım sizde yoksa kendinize göre düzenleyin. Beğenmeyi unutmayın.

Market oluşturma gui
1655852212136.png


Market gui / Yönetim paneli
1655852190366.png



[CODE lang="python" title="root/uicommon.py"]if app.ENABLE_OFFLINE_SHOP:
//Arat
class QuestionDialog(ui.ScriptWindow):

//Üstüne Ekle
#ZeRo
class TextBoard(ui.ThinBoard):
def __init__(self):
ui.ThinBoard.__init__(self)
self.lineHeight = 12
self.childrenList = []

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

def Clear(self):
self.lineHeight = 12
self.childrenList = []

def AppendTextLine(self, text):
textLine = ui.TextLine()
textLine.SetParent(self)
textLine.SetFontName(localeInfo.UI_DEF_FONT_LARGE)
textLine.SetText(str(text))
textLine.SetOutline()
textLine.SetFeather(False)
textLine.Show()
textLine.SetPosition(10, self.lineHeight)
self.childrenList.append(textLine)
self.lineHeight += 17
return textLine

class InputDialogForZeRo(InputDialog):
def __init__(self):
ui.ScriptWindow.__init__(self)

self.__CreateDialog()

def __del__(self):
InputDialog.__del__(self)

def __CreateDialog(self):

pyScrLoader = ui.PythonScriptLoader()
pyScrLoader.LoadScriptFile(self, "uiscript/inputdialogforzero.py")

try:
getObject = self.GetChild
self.board = getObject("Board")
self.acceptButton = getObject("AcceptButton")
self.cancelButton = getObject("CancelButton")
self.inputSlot = getObject("InputSlot")
self.inputValue = getObject("InputValue")
self.description1 = getObject("Description1")
self.description2 = getObject("Description2")
self.description3 = getObject("Description3")
self.textBoard = TextBoard()
self.textBoard.SetParent(self.board)
self.textBoard.SetPosition(10, 30)
self.textBoard.SetSize(220, 172)
self.textBoard.AddFlag('not_pick')
self.textBoard.Show()
self.RefreshText()

except:
import exception
exception.Abort("InputDialogWithDescription.LoadBoardDialog.BindObject")

def SetDescription1(self, text):
self.description1.SetText(text)

def SetDescription2(self, text):
self.description2.SetText(text)

def SetDescription3(self, text):
self.description3.SetText(text)

def SplitDescription(self, desc, limit):
total_tokens = desc.split()
line_tokens = []
line_len = 0
lines = []
for token in total_tokens:
if '|' in token:
sep_pos = token.find('|')
line_tokens.append(token[:sep_pos])
lines.append(' '.join(line_tokens))
line_len = len(token) - (sep_pos + 1)
line_tokens = [token[sep_pos + 1:]]
else:
line_len += len(token)
if len(line_tokens) + line_len > limit:
lines.append(' '.join(line_tokens))
line_len = len(token)
line_tokens = [token]
else:
line_tokens.append(token)

if line_tokens:
lines.append(' '.join(line_tokens))
return lines

def RefreshText(self):
self.textBoard.Clear()
lines = self.SplitDescription(uiScriptLocale.OFFLINE_SHOP_INFO, 35)
if not lines:
return
for line in lines:
self.textBoard.AppendTextLine(line)
#ZeRo[/CODE]


[CODE title="locale/locale_interface.txt"]OFFLINE_SHOP_NAME Market İsmi
OFFLINE_SHOP_CREATE Market Oluştur
OFFLINE_SHOP_INFO Market Tezgâh sistemi sen oyunda olmasan da senin belirlediğin süre boyunca nesnelerinin ticaretinin yapılmasını sağlar. Bu sistem sadece birinci köyünde kullanılabilir. Oyundan Çıkman tezgâhını kapatmaz. Tezgâhını yönetmek için envanterinden bulunan Market Oluştur'u kullanabilirsin.
[/CODE]


[CODE lang="python" title="root/uishop.py"]Tümünü Değiştir.

//Arat
self.lockButton.SetText

//Değiştir
self.lockButton.SetToolTipText[/CODE]



[CODE lang="python" title="root/interfacemodule.py"]//Arat
def OpenPrivateShopInputNameDialog(self):
#if player.IsInSafeArea():
# chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CANNOT_OPEN_PRIVATE_SHOP_IN_SAFE_AREA)
# return

inputDialog = uiCommon.InputDialog()
inputDialog.SetTitle(localeInfo.PRIVATE_SHOP_INPUT_NAME_DIALOG_TITLE)
inputDialog.SetMaxLength(32)
inputDialog.SetAcceptEvent(ui.__mem_func__(self.OpenPrivateShopBuilder))
inputDialog.SetCancelEvent(ui.__mem_func__(self.ClosePrivateShopInputNameDialog))
inputDialog.Open()
self.inputDialog = inputDialog


//Arat değiştir
def OpenPrivateShopInputNameDialog(self):
#if player.IsInSafeArea():
# chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CANNOT_OPEN_PRIVATE_SHOP_IN_SAFE_AREA)
# return

if app.ENABLE_OFFLINE_SHOP:
inputDialog = uiCommon.InputDialogForZeRo()
inputDialog.SetTitle(localeInfo.PRIVATE_SHOP_INPUT_NAME_DIALOG_TITLE)
inputDialog.SetMaxLength(24)
inputDialog.SetAcceptEvent(ui.__mem_func__(self.OpenPrivateShopBuilder))
inputDialog.SetCancelEvent(ui.__mem_func__(self.ClosePrivateShopInputNameDialog))
inputDialog.SetDescription1(uiScriptLocale.OFFLINE_SHOP_NAME)
if app.ENABLE_PREMIUM_MEMBERS:
if self.__GetPlayerPremium():
inputDialog.SetDescription2("Market Ücreti = 1.000.000 Yang")
inputDialog.SetDescription3("Market Süresi = 7 Gün")
else:
inputDialog.SetDescription2("Market Ücreti = 1.000.000 Yang")
inputDialog.SetDescription3("Market Süresi = 2 Gün")
else:
inputDialog.SetDescription2("Market Ücreti = 1.000.000 Yang")
inputDialog.SetDescription3("Market Süresi = 2 Gün")
inputDialog.SetBoardWidth(190)
inputDialog.Open()
self.inputDialog = inputDialog
else:
inputDialog = uiCommon.InputDialog()
inputDialog.SetTitle(localeInfo.PRIVATE_SHOP_INPUT_NAME_DIALOG_TITLE)
inputDialog.SetMaxLength(32)
inputDialog.SetAcceptEvent(ui.__mem_func__(self.OpenPrivateShopBuilder))
inputDialog.SetCancelEvent(ui.__mem_func__(self.ClosePrivateShopInputNameDialog))
inputDialog.Open()
self.inputDialog = inputDialog[/CODE]

uiscript e at
inputdialogforzero.py ve offlineshop.py
 

Ekli dosyalar

Son düzenleme:

En Çok Reaksiyon Alan Mesajlar

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst