Aug. 26th, 2018

Work Post

Aug. 26th, 2018 03:54 am
relee: Picture of Relee Starbreeze, Wizard (Default)
4:00am - It's four am and I'm in the living room, because I've been spending way too much money at McDonalds lately. Breakfast is so much more expensive than lunch there, especially if you want one of the healthier options, which are dwindling. No more Kale and Feta More-ning McWrap. Alas. Well it's not like I ate them very often anyways...

I mentioned going to the farmer's market yesterday, and that went well. But instead of buying healthy food I bought six butterscotch pecan butter tarts instead. ;.;

Anyways I thought I'd give working from home a try this morning and see what I can do. The first thing I need to do is more planning/figuring out how to make my message pump, MenuController, and how to connect everything.

I figure I'll put the MenuController on the Controllers object with the WorldController and the InputController so it's easier for them to get references to eachother. I'm not sure if the WorldController will have influence on the MenuController or not. They all have single scene existances, so the MenuController won't persist in other scenes any more than the other. But the WorldController should be dedicated to controlling the World object.

The MenuController is supposed to handle the Menus and the InputController is supposed to handle the input, but I'm not sure how Menu Input will be handled. Like, if you click on a button in the Menu GUI how is that recieved and handled? I'm not sure yet.

What I want to have happen is for the InputController to manage focus between the World and Menus, so that input gets routed to the correct locations. So, when you push the menu key on the keyboard or gamepad, it switches from the World having focus to the Menu having focus, and the menu appears. When you X out of the Menu, the World takes focus again.

Ahh that brings something else to mind. The way I'm designing it right now I've got three GUI windows/panels. The Menu is one, and the Messages window is another. The third is a message popup that will explain what just happened when it's significant. So, when you move, it won't do anything, but if you hit an enemy it'll pop up and say what you hit and how much damage you did, and you have to push a button to get back to the game. I'm not 100% sure how I want it to work yet, but I want it in there for testing at least. It might get annoying to the player, or it might be a valuable tool. I might make it optional later on.

But there are two things I'm thinking of about it. The first is that any input would close it and bring you back to normal, except maybe the menu button? And the second is that the way things work now, as soon as you take your turn, the monsters take theirs, so there would be no time between your "You hit monster for damage!" popup and the "Monster hit you for damage!" popup, and if multiple monsters hit you it would only show the last one. So, I need to implement something to hold the World simulation when waiting for input on the menu. That'll complicate things but it's good to get it out in the open that this is something I'll have to do.

The last complicated thing that's coming to mind is the Messages window's text box. It's currently scaled so that the text box fills the ScrollView GUI element. This means no scrolling is available, because it's already displaying the whole thing. But, the problem is expanding that text box when the text nolonger fits. I need to figure out a way to do that. Normally in Unity you would just have a text box overflow the text if you wanted it to keep going, but that won't work in this case because the box would stay the same time and not be able to be scrolled. Likewise, I can't premptively make the box bigger because then the player could scroll up the whole distance and see nothing.

4:28am - Thinking always takes so long. ^.^;;

Anyways with the above thought out, my next step is going back to Unity's learning section and figuring out the details for the buttons so I can have them relay their press events to the InputController.

5:44am - Got some good work done over the last hour or so but I just opened up f-list and started talking with someone so work might be put on hold. We'll see...

7:28am - Yeah I got busy with folks from the flist and got really distracted. Though I'm still thinking about my work. The last thing I was doing was trying to seperate the input between World and Menu.

9:24am - Now Rob's up early and I don't feel like I'm going to get any more work done for now, so I'mma wrap things up for the moment.

Profile

relee: Picture of Relee Starbreeze, Wizard (Default)
Relee Squirrel

July 2023

S M T W T F S
      1
23456 78
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 28th, 2025 09:43 am
Powered by Dreamwidth Studios