Jump to content

Ente's Python Examples


Recommended Posts

M2 Download Center

This is the hidden content, please
( Internal )

Introduction

Hey,

since I'm often asked if I can make an example for this or that in Python, I just post some of these examples in this thread from time to time. :)

Usually they just end up in my trash (that's why the collection is small for now) but maybe it will help some of you to learn something.


You are also welcome to post examples here and I will add them to the startpost.


You have a wish for a certain example?

Then write it in here.


PS:

These examples are designed very simple, so that they can be understood.

 

Examples

ui.ComoBox()

Spoiler

Preview:
gU42KYg.gif


Call it:
Add to imports at the top of game.py:
"import example_combobox"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

ui.ScrollBar() with text

Spoiler

Preview:
rGE57ti.gif


Call it:
Add to imports at the top of game.py:
"import example_scrollbar"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

ui.AniImageBox() as loading bar

Spoiler

Preview:
cC6o7zx.gif


Call it:
Add to imports at the top of game.py:
"import example_loadingbar"

and simply move the file "loading_bar.tga" into the client folder. (There where the .exe is located).

Otherwise change the path in the python file "example_loadingbar.py".

After the login in the game you will see the window.


Download:

This is the hidden content, please

 

ui.ListBox()

Spoiler

Preview:
HOuQhTB.gif


Call it:
Add to imports at the top of game.py:
"import example_listbox"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

ui.ToggleButton()

Spoiler

Preview:
FulTpMj.gif


Call it:
Add to imports at the top of game.py:
"import example_toggleButton"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

ui.RadioButtonGroup()

Spoiler

Preview:
Bs3UUlB.gif


Call it:
Add to imports at the top of game.py:
"import example_radioButtonGroup"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

ui.DragButton()

Spoiler

Preview:
J5gxzBc.gif


Call it:
Add to imports at the top of game.py:
"import example_dragButton"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

ui.Bar(), ui.Box(), ui.Line()

Spoiler

Preview:
DMLURef.gif


Call it:
Add to imports at the top of game.py:
"import example_barBoxLine"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

ui.Gauge(), ui.SliderBar()

Spoiler

Preview:
wKiWZgA.gif


Call it:
Add to imports at the top of game.py:
"import example_gaugeSlider"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

ui.TextLine(), ui.EditLine()

Spoiler

Preview:
e3OQOTs.gif


Call it:
Add to imports at the top of game.py:
"import example_textLineEditLine"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

Pagination

Spoiler

Preview:
DZmbP4S.gif


Call it:
Add to imports at the top of game.py:
"import example_pagination"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

Tabs

Spoiler

Preview:
bbovi1T.gif


Call it:
Add to imports at the top of game.py:
"import example_tabs"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

DropDown Tree

Spoiler

Preview:
gmb3X0x.gif


Call it:
Add to imports at the top of game.py:
"import example_dropdownTree"

and simply move the folder "exampleDropdownTree" into the client folder. (where the .exe is located).

Otherwise change the path in the python file "example_dropdownTree.py".

After the login in the game you will see the window.


Download:

This is the hidden content, please

 

Category Navigation

Spoiler

Preview:
BPzLnLe.gif


Call it:
Add to imports at the top of game.py:
"import example_categoryNav"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

ListBox Search

Spoiler

Preview:
iMpNu3B.gif


Call it:
Add to imports at the top of game.py:
"import example_listBoxSearch"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

TextLineScrollable Class

Spoiler

Preview:
haRL2QL.gif


Call it:
Add to imports at the top of game.py:
"import example_textLineScrollable"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

Collapsible window

Spoiler

Preview:
MwpRKdO.gif


Call it:
Add to imports at the top of game.py:
"import example_collapseWnd"

and simply move the folder "exampleCollapseWnd" into the client folder. (where the .exe is located).

Otherwise change the path in the python file "example_collapseWnd.py".

After the login in the game you will see the window.


Download:

This is the hidden content, please

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 85
  • Angry 1
  • Sad 2
  • Think 2
  • Confused 2
  • Good 26
  • Love 6
  • Love 97
Link to comment
Share on other sites

8 hours ago, hachiwari said:

Sexy, i hope that code is also sexy ;3

The code has been kept simple so that it can be easily understood. You can always optimize everything. :)

 

21 hours ago, North said:

Great job, this is a very handy reference. Could you use github gists/repo instead of mega downloads? Thanks

Yeah, I've been thinking about that, too, because things are getting messy. As soon as I find the time.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

#Update (very easy to use):

"Board" Animation Class (enlarge and shrink)

Preview

wcNlBQm.gif

 

Video

https://metin2.download/picture/2U7koEpVJDF8XLGAwz85oA3G6MfQC23h/.gif

 

Call it:
Add to imports at the top of game.py:
"import example_boardAnimation"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 33
  • Dislove 1
  • Good 8
  • Love 1
  • Love 26
Link to comment
Share on other sites

  • 2 weeks later...
On 5/13/2020 at 11:51 AM, ProfessorEnte said:

#Update (very easy to use):

"Board" Animation Class (enlarge and shrink)

Preview

wcNlBQm.gif

 

Video

https://metin2.download/picture/2U7koEpVJDF8XLGAwz85oA3G6MfQC23h/.gif

 

Call it:
Add to imports at the top of game.py:
"import example_boardAnimation"

After the login in the game you will see the window


Download:

This is the hidden content, please

 


hey nice :) but i have a question is it possible to see the image while the window is being closed? If you dont understand what i mean: if you close the window the animation runs but you can see its just a empty window. 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
  • Sad 1
  • Good 1
Link to comment
Share on other sites

  • 6 months later...
On 5/13/2020 at 12:51 PM, ProfessorEnte said:

#Update (very easy to use):

"Board" Animation Class (enlarge and shrink)

Preview

wcNlBQm.gif

 

Video

https://metin2.download/picture/2U7koEpVJDF8XLGAwz85oA3G6MfQC23h/.gif

 

Call it:
Add to imports at the top of game.py:
"import example_boardAnimation"

After the login in the game you will see the window


Download:

This is the hidden content, please

 

Hello there how can I use this animation for all windows

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
  • Love 1
Link to comment
Share on other sites

  • 4 weeks later...
  • 4 months later...
  • 3 weeks later...

#Update:

Money Animation Class

Preview
hR3Zbmh.gif

Call it:
Add to imports at the top of game.py:
"import example_moneyAnimation"
After the login in the game you will see the window

Download:

This is the hidden content, please

Type Writer Scrollable Textline Class

Preview
ZrdZWhm.gif

Call it:
Add to imports at the top of game.py:
"import example_typeWriterAnimation"
After the login in the game you will see the window

Download:

This is the hidden content, please

ListBoxDrag Class

Preview
crCdkZt.gif

Call it:
Add to imports at the top of game.py:
"import example_listBoxDrag"
After the login in the game you will see the window

Download:

This is the hidden content, please

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 19
  • Good 9
  • Love 11
Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...
  • Management
Link to comment
Share on other sites

  • 1 month later...
  • Management
Link to comment
Share on other sites

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.