Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - MegaX

Pages: [1]
1
NGUI 3 Support / Re: FixedSize and Screen Resolutions
« on: June 26, 2014, 11:18:59 PM »
I see, thanks for the help.
So in order to achieve pixel-perfect UI for various resolutions, is it a good approach to resize UI elements and change the font size in code based on the chosen resolution?
Or another possibility is to have one atlas for each resolution and switch the atlas to use during runtime based on the resolution, would that work?

2
NGUI 3 Support / Re: FixedSize and Screen Resolutions
« on: June 25, 2014, 10:57:31 PM »
Right. I do want to keep UI elements the same size relative to height.
Is there a way to accomplish both that and keeping the text crisp?

3
NGUI 3 Support / FixedSize and Screen Resolutions
« on: June 24, 2014, 10:08:53 PM »
Hi,

I have searched around and found no solution to my problem.
So I have my UIRoot set to FixedSize with manual height of 1080. UILabels look nice and crisp in 1080p (native) resolution. However, when I play the game in 1366x768, UILabels become blurry.
How would you go about making UILabels crisp across different resolutions?

Thanks.

4
NGUI 3 Support / Re: How to detect clicking outside of an area?
« on: April 09, 2014, 12:52:46 PM »
Yes, I understand that. The problem is that if I click on the scroll bar and scroll the text, that sends a OnSelect(false) to the input field as well. But in that case, I don't want to do anything.

5
NGUI 3 Support / How to detect clicking outside of an area?
« on: April 08, 2014, 07:19:57 PM »
So I've been working on a chat feature for my game. The chat box background is hidden normally. It shows up when you hit Enter and then you're allowed to type in something to send. The desired effect is when you click somewhere outside of the box, the background becomes hidden again.

I binded Enter to select the input field and show the background, easy. But I'm having trouble hiding the background correctly. Using the scroll bar as well as clicking inside the chat box shouldn't hide the background. I've tried a bunch of different stuff, nothing really worked. How should I approach this?

The first image is the normal one, input field and background hidden, can't chat.
The second image is after you hit Enter, background shows up, you can type in the input field.

Pages: [1]