- Mesaj
- 481
- Çözümler
- 18
- Beğeni
- 142
- Puan
- 749
- Ticaret Puanı
- 0
Bunu bulamadım da @Mavi Ruh un daha önce paylaştığı şu vargereken itemlerin var olduğunda yeşil, yok olduğunda kırmızı effektle gösterdiği sistemin konusunu bulamadım yardımcı olacak var mı?
Highligt şekilinde olan, itemin etrafında yanan çerçeveli
[ROOT]>uirefine.py açılır
Aratılır > textLine = ui.TextLine()
Kod Bloğu şu şekilde Değiştirilir
textLine = ui.TextLine()
textLine.SetParent(thinBoard)
textLine.SetFontName(localeInfo.UI_DEF_FONT)
if player.GetItemCountByVnum(vnum) < count:
textLine.SetPackedFontColor(0xffFF0033)
else:
textLine.SetPackedFontColor(0xff40EF37)
textLine.SetText("|cFFdddddd|H|h%s x%d|h|r (%d)" % (item.GetItemName(), count, player.GetItemCountByVnum(vnum)))
textLine.SetOutline()
textLine.SetFeather(FALSE)
textLine.SetWindowVerticalAlignCenter()
textLine.SetVerticalAlignCenter()
---------------------------------------------------------------
[LOCALE_TR(DE)]>locale_game.txt Açılır
Aratılır > REFINE_SUCCESS_PROBALITY
Değiştirilir
REFINE_SUCCESS_PROBALITY |cffffcc00Yükseltme Oranı : |cff00ccff%% %d
---------------------------------------------------------------
# AYNI DOSYA ICINDE
Aratılır > REFINE_COST
Değiştirilir
REFINE_COST |cffffcc00Yükseltme bedeli : |cff00ccff%d |cffffcc00Yang
---------------------------------------------------------------
[LOCALE_TR(DE)] > locale_interface.txt Açılır
Aratılır > REFINE_COST Yükseltme Ücreti: 0 Yang
REFINE_INFO Başarılı bir geliştirme olasılığı: %100
Değiştirilir
REFINE_INFO Yükseltme şansı :
REFINE_COST Yükseltme bedeli :
NEW_OK |cff00C78CTamam
NEW_NO |cff00C78CHayır
---------------------------------------------------------------
[uiscript] > refinedialog.py değiştirilir
import uiScriptLocale
window = {
"name" : "RefineDialog",
"style" : ("movable", "float",),
"x" : SCREEN_WIDTH - 400,
"y" : 70 * 800 / SCREEN_HEIGHT,
"width" : 0,
"height" : 31,
"children" :
(
{
"name" : "Board",
"type" : "board",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 0,
"height" : 31,
"children" :
(
{
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 8,
"y" : 8,
"width" : 0,
"color" : "red",
"children" :
(
{
"name" : "TitleName",
"type" : "text",
"text" : uiScriptLocale.REFINE_TTILE,
"horizontal_align" : "center",
"text_horizontal_align" : "center",
"x" : 0,
"y" : 3,
},
),
},
{
"name" : "SuccessPercentage",
"type" : "text",
"text" : uiScriptLocale.REFINE_INFO,
"horizontal_align" : "center",
"vertical_align" : "bottom",
"text_horizontal_align" : "center",
"x" : 0,
"y" : 60,
},
{
"name" : "Cost",
"type" : "text",
"text" : uiScriptLocale.REFINE_COST,
"horizontal_align" : "center",
"vertical_align" : "bottom",
"text_horizontal_align" : "center",
"x" : 0,
"y" : 47,
},
{
"name" : "AcceptButton",
"type" : "button",
"x" : -35,
"y" : 30,
"text" : uiScriptLocale.NEW_OK,
"horizontal_align" : "center",
"vertical_align" : "bottom",
"default_image" : "d:/ymir work/ui/public/Middle_Button_01.sub",
"over_image" : "d:/ymir work/ui/public/Middle_Button_02.sub",
"down_image" : "d:/ymir work/ui/public/Middle_Button_03.sub",
},
{
"name" : "CancelButton",
"type" : "button",
"x" : 35,
"y" : 30,
"text" : uiScriptLocale.NEW_NO,
"horizontal_align" : "center",
"vertical_align" : "bottom",
"default_image" : "d:/ymir work/ui/public/Middle_Button_01.sub",
"over_image" : "d:/ymir work/ui/public/Middle_Button_02.sub",
"down_image" : "d:/ymir work/ui/public/Middle_Button_03.sub",
},
),
},
),
}
[ROOT]>uirefine.py açılır
Aratılır > textLine = ui.TextLine()
Kod Bloğu şu şekilde Değiştirilir
textLine = ui.TextLine()
textLine.SetParent(thinBoard)
textLine.SetFontName(localeInfo.UI_DEF_FONT)
if player.GetItemCountByVnum(vnum) < count:
textLine.SetPackedFontColor(0xffFF0033)
else:
textLine.SetPackedFontColor(0xff40EF37)
textLine.SetText("|cFFdddddd|H|h%s x%d|h|r (%d)" % (item.GetItemName(), count, player.GetItemCountByVnum(vnum)))
textLine.SetOutline()
textLine.SetFeather(FALSE)
textLine.SetWindowVerticalAlignCenter()
textLine.SetVerticalAlignCenter()
Teşekkürler ama bu değildi yinede sağ olunBunu bulamadım da @Mavi Ruh un daha önce paylaştığı şu var
maviruhrefine:[ROOT]>uirefine.py açılır Aratılır > textLine = ui.TextLine() Kod Bloğu şu şekilde Değiştirilir textLine = ui.TextLine() textLine.SetParent(thinBoard) textLine.SetFontName(localeInfo.UI_DEF_FONT) if player.GetItemCountByVnum(vnum) < count: textLine.SetPackedFontColor(0xffFF0033) else: textLine.SetPackedFontColor(0xff40EF37) textLine.SetText("|cFFdddddd|H|h%s x%d|h|r (%d)" % (item.GetItemName(), count, player.GetItemCountByVnum(vnum))) textLine.SetOutline() textLine.SetFeather(FALSE) textLine.SetWindowVerticalAlignCenter() textLine.SetVerticalAlignCenter() --------------------------------------------------------------- [LOCALE_TR(DE)]>locale_game.txt Açılır Aratılır > REFINE_SUCCESS_PROBALITY Değiştirilir REFINE_SUCCESS_PROBALITY |cffffcc00Yükseltme Oranı : |cff00ccff%% %d --------------------------------------------------------------- # AYNI DOSYA ICINDE Aratılır > REFINE_COST Değiştirilir REFINE_COST |cffffcc00Yükseltme bedeli : |cff00ccff%d |cffffcc00Yang --------------------------------------------------------------- [LOCALE_TR(DE)] > locale_interface.txt Açılır Aratılır > REFINE_COST Yükseltme Ücreti: 0 Yang REFINE_INFO Başarılı bir geliştirme olasılığı: %100 Değiştirilir REFINE_INFO Yükseltme şansı : REFINE_COST Yükseltme bedeli : NEW_OK |cff00C78CTamam NEW_NO |cff00C78CHayır --------------------------------------------------------------- [uiscript] > refinedialog.py değiştirilir import uiScriptLocale window = { "name" : "RefineDialog", "style" : ("movable", "float",), "x" : SCREEN_WIDTH - 400, "y" : 70 * 800 / SCREEN_HEIGHT, "width" : 0, "height" : 31, "children" : ( { "name" : "Board", "type" : "board", "style" : ("attach",), "x" : 0, "y" : 0, "width" : 0, "height" : 31, "children" : ( { "name" : "TitleBar", "type" : "titlebar", "style" : ("attach",), "x" : 8, "y" : 8, "width" : 0, "color" : "red", "children" : ( { "name" : "TitleName", "type" : "text", "text" : uiScriptLocale.REFINE_TTILE, "horizontal_align" : "center", "text_horizontal_align" : "center", "x" : 0, "y" : 3, }, ), }, { "name" : "SuccessPercentage", "type" : "text", "text" : uiScriptLocale.REFINE_INFO, "horizontal_align" : "center", "vertical_align" : "bottom", "text_horizontal_align" : "center", "x" : 0, "y" : 60, }, { "name" : "Cost", "type" : "text", "text" : uiScriptLocale.REFINE_COST, "horizontal_align" : "center", "vertical_align" : "bottom", "text_horizontal_align" : "center", "x" : 0, "y" : 47, }, { "name" : "AcceptButton", "type" : "button", "x" : -35, "y" : 30, "text" : uiScriptLocale.NEW_OK, "horizontal_align" : "center", "vertical_align" : "bottom", "default_image" : "d:/ymir work/ui/public/Middle_Button_01.sub", "over_image" : "d:/ymir work/ui/public/Middle_Button_02.sub", "down_image" : "d:/ymir work/ui/public/Middle_Button_03.sub", }, { "name" : "CancelButton", "type" : "button", "x" : 35, "y" : 30, "text" : uiScriptLocale.NEW_NO, "horizontal_align" : "center", "vertical_align" : "bottom", "default_image" : "d:/ymir work/ui/public/Middle_Button_01.sub", "over_image" : "d:/ymir work/ui/public/Middle_Button_02.sub", "down_image" : "d:/ymir work/ui/public/Middle_Button_03.sub", }, ), }, ), }
Sadece gerekli item var mı yok mu kontrolü istersen varsa yeşil yoksa kırmızı renk olayı bu kısmı kullanabilirsin
Python:[ROOT]>uirefine.py açılır Aratılır > textLine = ui.TextLine() Kod Bloğu şu şekilde Değiştirilir textLine = ui.TextLine() textLine.SetParent(thinBoard) textLine.SetFontName(localeInfo.UI_DEF_FONT) if player.GetItemCountByVnum(vnum) < count: textLine.SetPackedFontColor(0xffFF0033) else: textLine.SetPackedFontColor(0xff40EF37) textLine.SetText("|cFFdddddd|H|h%s x%d|h|r (%d)" % (item.GetItemName(), count, player.GetItemCountByVnum(vnum))) textLine.SetOutline() textLine.SetFeather(FALSE) textLine.SetWindowVerticalAlignCenter() textLine.SetVerticalAlignCenter()
25550 eklentisini görüntüle
Teşekkürlerburada varLinkleri görebilmek için giriş yap veya kayıt ol.