Hi,
I am wondering if it is possible to modify shape of some type of window.
Typically, I wish to create some circular progress bar, in the aim to show shield and hull state of my ship in a game.
how can I do this?
The point of attention, is that I am coding my game in python, so I am using the binding providing by Pypi (http://pypi.python.org/pypi/PyCEGUI/0.7.5).
thank you
modifying shape
Moderators: CEGUI MVP, CEGUI Team
Re: modifying shape
Forum Usage Guidelines wrote:viewtopic.php?f=6&t=3358#p15226
......
- Before you consider posting, search for similar topics that may already contain a solution.
Please make sure you have read and understand the Forum Usage Guidelines linked above. In particular, please make sure that you exhaust all resources (search the forum, wiki, api docs, google, etc.) before posting your question as it may already be answered; you will save both your self and the community from wasting time. And this particular question has already been answered: search.php?keywords=circle
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!
Re: modifying shape
Before you consider posting, search for similar topics that may already contain a solution.
as for all forums. I agree.
For my mind I already searched in this forum, and on google, but my topic appears only once, and the answer is not corresponding to what I wish.
the search you provide to me, is to create some circle shape, and it is not the topic.
I wish to have something like that :
Not a circle I filled. It is a bit more complex at my mind, it is why I wish to know if it is possible, and the way I can do it.
Thank you
Re: modifying shape
This is why you need to provide all information up front, so as not to waste anyone's time. You should have linked that image to begin with; the only thing you said was I wish to create some circular progress bar.
Anyway, I do not think you can do this out of the box with CEGUI and/or the CEGUI Animation system. So for this clock-like progression I would probably just disable AutoRenderingSurface on the window, use Render To Texture to manually update the image, and then for each step of progress you want to show update the texture vertices in a Triangle Fan style.
Anyway, I do not think you can do this out of the box with CEGUI and/or the CEGUI Animation system. So for this clock-like progression I would probably just disable AutoRenderingSurface on the window, use Render To Texture to manually update the image, and then for each step of progress you want to show update the texture vertices in a Triangle Fan style.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 8 guests