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

FrameWidth tiling #56

Closed
EReeves opened this issue Mar 20, 2018 · 3 comments
Closed

FrameWidth tiling #56

EReeves opened this issue Mar 20, 2018 · 3 comments

Comments

@EReeves
Copy link

EReeves commented Mar 20, 2018

I can't seem to get my own panel textures working, I've tried lots of different frame sizes. I even tried using a 64x64 texture like in the default themes.

image

Is there anything I should be double checking?

@RonenNess
Copy link
Owner

RonenNess commented Mar 20, 2018

Hi @EReeves

You need to update the texture metadata to tell GeonBit.UI the width and height of the frame segment inside the texture (in percents). For example take a look at this file:

https://github.com/RonenNess/GeonBit.UI/blob/master/GeonBit.UI/Content/GeonBit.UI/themes/hd/textures/panel_default_md.xml

The 0.2, 0.2 means that 20% of the texture size is dedicated to its frame. If you want a wider frame you might want to set it to something like 0.35, maybe even 0.4. Just make sure not to set it to 0.5 or more, apparently it causes a crash :o

Let me know if it worked.

Thanks :)

@EReeves
Copy link
Author

EReeves commented Mar 21, 2018

I did that, tried everything from 0 to 5 and a bunch of other things too, maybe it's a localized issue, I'll have another play when I get time and see if I can figure out what's happening.

Thanks

@EReeves
Copy link
Author

EReeves commented Mar 21, 2018

Yeah, looks like it was a localized issue, I tried it on a blank project and it worked flawlessly, I ended up removing and reimporting all the GeonBit.UI Content. That's fixed it.

Thanks for your help.

@EReeves EReeves closed this as completed Mar 21, 2018
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

No branches or pull requests

2 participants