Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MessageBox, SliderButton and ClickPanel #630

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Creator754915
Copy link

I add new UI component, and i developpe the Layout component

What i add ?

  1. MessageBox
  2. ClickPanel
  3. Background

Messagebox

from ursina import *
from ursina.prefabs import MessageBox

app = Ursina()
messagebox = MessageBox(messagebox_name='My Messagebox', text='hello world!', scale=(.8, .5), color=color.azure,
                        text_origin=(-.36, .18))
messagebox.tooltip = Tooltip("MessageBox")

app.run()

Background

from ursina import *
from ursina.prefabs import Background
app = Ursina()

Background(texture='sky_sunset')

app.run()

ClickPanel

from ursina import *
from ursina.prefabs import ClickPanel
app = Ursina()

ClickPanel(key_control=False, key_bind="right mouse")

app.run()

Copy link
Author

@Creator754915 Creator754915 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just refont the name of file

Copy link

@OfficialAhmed OfficialAhmed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done. It works perfect

@Creator754915
Copy link
Author

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants