-
Posts
656 -
Joined
-
Last visited
-
Days Won
187 -
Feedback
100%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by VegaS™
-
-
21 minutes ago, MrQuin said:
Can you show us an example?
- root/main.py
Spoilerimport ui, exception, dbg class MainWindow(ui.ScriptWindow): def __init__(self): ui.ScriptWindow.__init__(self) self.__LoadWindow() def __del__(self): ui.ScriptWindow.__del__(self) def Destroy(self): self.ClearDictionary() def __LoadWindow(self): try: ui.PythonScriptLoader().LoadScriptFile(self, "uiScript/main_window.py") except: exception.Abort("MainWindow.__LoadWindow.LoadWindow") try: self.childrenDict = self.GetChildDictionary("HideButton", "ShowButton", "UpdateButton") except: import exception exception.Abort('MainWindow.__LoadWindow.BindObject') for tabKey, tabButton in enumerate(self.childrenDict.values()): tabButton.SAFE_SetEvent(self.__OnToggleDown, tabKey) def __OnToggleDown(self, index): dbg.LogBox('__OnToggleDown {:d}'.format(index)) if index == 0: # HideButton self.SAFE_SetDictionaryEvent(self.childrenDict, ('Hide')) elif index == 1: # ShowButton self.SAFE_SetDictionaryEvent(self.childrenDict, ('Show')) elif index == 2: # UpdateButton self.SAFE_SetDictionaryEvent(self.childrenDict, ('UpdateRect', 'SetTop', 'SetCenterPosition', 'Lock'))
- uiscript/main_window.py
Spoilerimport uiScriptLocale UI_WIDTH = 115 UI_HEIGHT = 130 window = { "name" : "MainWindow", "style" : ("movable", "float",), "x" : SCREEN_WIDTH / 2 - UI_WIDTH / 2, "y" : SCREEN_HEIGHT / 2 - UI_HEIGHT / 2, "width" : UI_WIDTH, "height" : UI_HEIGHT, "children" : ( { "name" : "Board", "type" : "board_with_titlebar", "x" : 0, "y" : 0, "width" : UI_WIDTH, "height" : UI_HEIGHT, "title" : "Window", "children" : ( { "name" : "HideButton", "type" : "button", "x" : 15, "y" : 40, "text" : "HideButton", "default_image" : "d:/ymir work/ui/public/large_button_01.sub", "over_image" : "d:/ymir work/ui/public/large_button_02.sub", "down_image" : "d:/ymir work/ui/public/large_button_03.sub", }, { "name" : "ShowButton", "type" : "button", "x" : 15, "y" : 40 + (30 * 1), "text" : "ShowButton", "default_image" : "d:/ymir work/ui/public/large_button_01.sub", "over_image" : "d:/ymir work/ui/public/large_button_02.sub", "down_image" : "d:/ymir work/ui/public/large_button_03.sub", }, { "name" : "UpdateButton", "type" : "button", "x" : 15, "y" : 40 + (30 * 2), "text" : "UpdateButton", "default_image" : "d:/ymir work/ui/public/large_button_01.sub", "over_image" : "d:/ymir work/ui/public/large_button_02.sub", "down_image" : "d:/ymir work/ui/public/large_button_03.sub", }, ), }, ), }
-
-
On 8/25/2018 at 7:18 PM, FlorinMarian said:
Abou 1 year ago I bought Dice System C++ by Fahtibab34, it was working well till few days ago when I've discovered that someone can exploit this system.
System files: HERE
(2.4) Content
- Don't post stuff other made and/or sell stuff others made.
- No Links to other boards with the same sense as metin2dev allowed. (This include file names and image content also!)
- No posting (whether to sell or give away for free) anything that involves cheating or stealing from people's clients or servers.
Who gave you permission for post a link with him system? If already is public in other communities that doesn't mean you can do that here.
- 3
-
17 hours ago, avertuss said:
It works but what with this error?
0822 00:01:29573 :: File "uiPrivateShopBuilder.py", line 243, in uiPrivateShopBuilder.PrivateShopBuilder.Open 0822 00:01:29573 :: AttributeError 0822 00:01:29573 :: : 0822 00:01:29573 :: 'NoneType' object has no attribute 'SetOnTopWindow' 0822 00:01:29573 ::
Quote-
if app.WJ_ENABLE_TRADABLE_ICON:
-
self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)}
-
self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP)
-
self.interface.RefreshMarkInventoryBag()
if app.WJ_ENABLE_TRADABLE_ICON: self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)} if self.interface: self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP) self.interface.RefreshMarkInventoryBag()
- 2
- 2
-
-
On 7/30/2018 at 10:44 PM, Lua_Horus2 said:
0730 20:37:44610 :: File "uiPrivateShopBuilder.py", line 251, in Close 0730 20:37:44611 :: AttributeError 0730 20:37:44611 :: : 0730 20:37:44611 :: 'NoneType' object has no attribute 'GetInventoryPageIndex' 0730 20:37:44611 ::
- if itemInvenPage == self.wndInventory.GetInventoryPageIndex():
- if self.wndInventory and itemInvenPage == self.wndInventory.GetInventoryPageIndex():
- 4
-
M2 Download Center
( Internal )
( GitHub )
Tab Targeting: Player has the possibility to select the nearest monster around the character by pressing the Tab key.
NOTE: Players are not able to select NPCs, metin stones, and players as targets!This video is from 2017.
- 63
- 1
- 2
- 1
- 31
- 5
- 40
Metin2 - Graphic Mask Control
in Features & Metin2 Systems
Posted
M2 Download Center
GitHub repository: