-
Notifications
You must be signed in to change notification settings - Fork 38
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
Menu Functionality #24
Comments
I'll sign up for this. throwing in some quick programmer art |
Sweet. I believe that @Goldenheaven has done some work on this too. |
|
There was so much going on in the main scene, I started anew in another scene I'm calling main_skinned. I'm using Unitys built-in GUI functionality as much as I can, to keep it somewhat scalable between resolutions etc. My plan is to apply a skin to it later, change font sizes, colors, backgrounds etc etc. I haven't gotten that far yet, so I don't know how much customization is possible, we shall see! Here's a video of what I've got going so far: http://www.youtube.com/watch?v=yODKvNPUJeQ |
@lightsoda Looks like a good start! From a cursory look makes it seems like Unity's normal UI stuff can do auto corner/edge slicing, which is sweet. Just be sure to use the fonts that are in the repo (I'd like to swap them out for something with appropriate licencing), since the fonts athat Unity uses by default aren't on all operating systems. Are you aiming to have the camera slowly orbit the hole? |
@Cheeseness sure we could have the camera orbit the hole. No problem. |
@Cheeseness For fonts, I added georgia, but we can figure out what we can and can't use, and replace with appropriate fonts down the line. As for the skinning, it's kinda funky, I downloaded the source files for the built-in skin, which has helped. They are basically textures, which include the rounded corners, basic colors and some shading. It seems very limited to the shape of the elements, and the source bitmaps are too small to for instance add texture work to the button backgrounds. But instead of going down the rabbit hole of too much work, I guess we can compromise and work within the limits of the current Unity UI system. |
#24: Basic GUI layout and skinning
The only problem with that approach is that we're distributing the entire git history, not just the current head.
What I briefly looked over seemed to be saying that you specify in pixels how much of the edges to use and then whatever's left from the source image is tiled as the background (so your source could be huge or small). |
We need to look at keeping variables between scenes for settings. As it stands right now, for main_skinned at least, the settings for music/sound are just kept within that script. |
I'd like to see @Goldenheaven's configuration handler start to look at being the storage mechanism for that sort of stuff eventually (with user preferences type stuff optionally being pushed out to file so that they can be remembered for next run). |
@ErikBehar I'm gonna go ahead and start cleaning up the "main" scene and the UI you've been working on. Short term I think it's best if we get that working and looking half decent, I hope you don't mind! I'll throw in some of the mockup art and stuff. Hit me up on IRC if you want to sync. |
@lightsoda that would be awesome, let me know if you need clarification of how anything works, and if you need additional code to make it work ( my thinking is that we might need an anchor to any other gameobject, or a scale proportional anchor ) not sure. |
Implement menus (#16) and other out-of-game "screens".
The text was updated successfully, but these errors were encountered: