Jump to content
Forgot your email address? ×
×
×
  • Create New...

Ente's Python Examples


Recommended Posts

M2 Download Center

Hidden Content

    Give reaction to this post to see the hidden content.
( 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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

  • Metin2 Dev 11
  • Love 54
  • Love 3
  • Good 6
Link to comment
  • Replies 16
  • Created
  • Last Reply

Top Posters In This Topic

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
  • 1 month later...
  • 2 weeks later...

#Update (very easy to use):

"Board" Animation Class (enlarge and shrink)

Preview

wcNlBQm.gif

 

Video

https://imgur.com/cy0YHxj

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

Edited by ProfessorEnte
  • Metin2 Dev 4
  • Love 16
  • Love 1
  • Good 1
Link to comment
  • 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://imgur.com/cy0YHxj

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 


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. 

Link to comment
On 5/13/2020 at 12:35 PM, xP3NG3Rx said:

Nice and useful, would be more nice with scaling.

Rubinum gives some new ideas, doesn't it? :D

Penger Sama can you ? (InSert random smiley here)

Link to comment
  • 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://imgur.com/cy0YHxj

 

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:

Hidden Content

    Give reaction to this post to see the hidden content.

 

Hello there how can I use this animation for all windows

Link to comment
  • 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:

Hidden Content

    Give reaction to this post to see the hidden content.

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:

Hidden Content

    Give reaction to this post to see the hidden content.

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:

Hidden Content

    Give reaction to this post to see the hidden content.

  • Metin2 Dev 3
  • Love 3
  • Love 1
  • Good 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.