Register for your free account! | Forgot your password?
Rust Cheats

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 09:29

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Python Functions] DropBox + EasyButton !!

Discussion on [Python Functions] DropBox + EasyButton !! within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
DEMONKING.'s Avatar
 
elite*gold: 5
Join Date: Oct 2012
Posts: 290
Received Thanks: 357
[Python Functions] DropBox + EasyButton !!

hello there everybody

so i just finished this "little" new functions

and i wanted to share with you guys

# 1: Drop Box

Quote:
ui.DropingBox(width, height, x, y, parent)
# 2 : Easy Button

Quote:
ui.CreateButton(parent, x, y, text, event(function), size ( xLarge, Large, Small, ..... etc)
watch the video here on youtube to checkout how it works :





download :


hope you guys like it
DEMONKING. is offline  
Thanks
3 Users
Old 07/23/2015, 08:36   #2
 
KaMeR1337's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,415
Received Thanks: 5,444
Code:
def Button(self, parent, buttonName, x, y, func, UpVisual, OverVisual, DownVisual):
		button = ui.Button()
		if parent != None:
			button.SetParent(parent)
		button.SetPosition(x, y)
		button.SetUpVisual(UpVisual)
		button.SetOverVisual(OverVisual)
		button.SetDownVisual(DownVisual)
		button.SetText(buttonName)
		button.Show()
		button.SetEvent(func)
		return button

self.btn1 = Button(...)
self.btn2 = Button(...)
this is more simple. what for you use list. and there is already a class called ComboBox
KaMeR1337 is offline  
Old 07/23/2015, 08:45   #3
 
DEMONKING.'s Avatar
 
elite*gold: 5
Join Date: Oct 2012
Posts: 290
Received Thanks: 357
Quote:
Originally Posted by KaMeR1337 View Post
Code:
def Button(self, parent, buttonName, x, y, func, UpVisual, OverVisual, DownVisual):
		button = ui.Button()
		if parent != None:
			button.SetParent(parent)
		button.SetPosition(x, y)
		button.SetUpVisual(UpVisual)
		button.SetOverVisual(OverVisual)
		button.SetDownVisual(DownVisual)
		button.SetText(buttonName)
		button.Show()
		button.SetEvent(func)
		return button

self.btn1 = Button(...)
self.btn2 = Button(...)
this is more simple. what for you use list. and there is already a class called ComboBox

for this button you have to send : up visual . down visual bla bla bla
it will be really long line :3

for the ComboBox, i've never heard about it :O
DEMONKING. is offline  
Old 07/23/2015, 08:47   #4
 
KaMeR1337's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,415
Received Thanks: 5,444
Quote:
Originally Posted by DEMONKING. View Post
for this button you have to send : up visual . down visual bla bla bla
it will be really long line :3
i just gave you a sample that shows, you added list for nothing
KaMeR1337 is offline  
Old 07/23/2015, 08:52   #5
 
DEMONKING.'s Avatar
 
elite*gold: 5
Join Date: Oct 2012
Posts: 290
Received Thanks: 357
Quote:
Originally Posted by KaMeR1337 View Post
i just gave you a sample that shows, you added list for nothing

So combobox is like a listbox, with board :O ?
DEMONKING. is offline  
Old 07/23/2015, 10:08   #6
 
Poccix's Avatar
 
elite*gold: 44
Join Date: Dec 2009
Posts: 1,696
Received Thanks: 3,833
You do not need to add the button to a list.
When you use:
self.button = ui.CreateButton(...)

The function KaMeR1337 posted is well.
With yours you can only use default images,
with the function from KaMeR1337 you can
use own images.
Poccix is offline  
Old 07/23/2015, 12:01   #7
 
DEMONKING.'s Avatar
 
elite*gold: 5
Join Date: Oct 2012
Posts: 290
Received Thanks: 357
Quote:
Originally Posted by Poccix View Post
You do not need to add the button to a list.
When you use:
self.button = ui.CreateButton(...)

The function KaMeR1337 posted is well.
With yours you can only use default images,
with the function from KaMeR1337 you can
use own images.

would be easier if you have both, so whenever you want to use own images, you can
DEMONKING. is offline  
Old 07/23/2015, 13:42   #8
 
DasSchwarzeT's Avatar
 
elite*gold: 399
Join Date: Sep 2011
Posts: 5,323
Received Thanks: 3,937
Thanks, the simple Dropbox KS quiet useful.
DasSchwarzeT is offline  
Old 07/23/2015, 17:50   #9
wild wild son




 
Nick's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 5,996
Received Thanks: 3,391
Functions like these are already a part of the common ui.py;


These are (partly) not quite mature but they are existing.

Greetings
Nick is offline  
Thanks
1 User
Old 07/23/2015, 21:22   #10
 
DEMONKING.'s Avatar
 
elite*gold: 5
Join Date: Oct 2012
Posts: 290
Received Thanks: 357
Quote:
Originally Posted by .JayZoN View Post
Functions like these are already a part of the common ui.py;


These are (partly) not quite mature but they are existing.

Greetings

well yea, but instead of sending the path and the images
you can just send the size ( only for normal(not custom) buttons )
DEMONKING. is offline  
Old 07/25/2015, 20:58   #11
 
Eigenartig's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 219
Received Thanks: 123
instead of creating a new dropbox you could use ui.ComboBox() and i think it would be better

Eigenartig is offline  
Reply


Similar Threads Similar Threads
[C++] Run Python Function Functions Metin2
05/10/2014 - C/C++ - 5 Replies
Hat sich geklärt.
Metin2 DE [GF-Official] Python Functions
04/03/2014 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 3 Replies
Hey :)!, mir war heute stink langweilig und dachte mir ich release mal die Python functions für den Metin2 DE Server. Vielleicht kann der eine oder andere damit etwas anfangen, der ein H-Shield Bypass hat, oder sonst wie xD. Credits: coldzer0 - Link zum Post. Update: Damit kann man übrigens auch ohne HS-Shield tolle Tools "basteln" ;). Die Funktionen sollten eigentlich auch mit anderen GF-Servern funktionieren. Wie auch immer genug gelabert, hier nun die Funktionen:
Python 2.7 For New Functions
01/29/2013 - Metin2 PServer Guides & Strategies - 24 Replies
Dont need anything just add to m2 path.
Python Functions von Mt2 per C++ Code Inject ausführen?
12/02/2011 - C/C++ - 5 Replies
Hallo, wollte fragen, ob mir eventuell jemand beantworten kann, wie man Python Functions nützt, welche in den Metin2 - pack Files gespeichert sind. Und ob das überhaupt so wie ich mir das vorstelle möglich ist.
[5173] - Python bot interface with loadable memory functions. (w/ Melee demo)
12/10/2009 - CO2 Programming - 41 Replies
M O V E D _ T O _ C O D E X P L O S I O N



All times are GMT +1. The time now is 09:30.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.