Code Monkey home page Code Monkey logo

Comments (6)

Jammyjamjamman avatar Jammyjamjamman commented on May 20, 2024 1

not sure yet how to fix it, but this is the current problem:
screen4
Everything could be shifted down, but this would make the comment box even smaller, which is unideal.
An ideal solution is a scroll for player positions. I'll have a look to see if that's possible.

from glest-source.

andy5995 avatar andy5995 commented on May 20, 2024

I can't believe I really did this! Or at least.. that I was able to do it so quickly. I've been picking at it for a few days.

You can see in the screenshot below that I need to move some text on the setup menu around, but basically as far as testing, I was able to:

  • start a server
  • checkbox -> allow observers
  • connect with a 2nd client ; select slot 5 on a 4 player map and choose "observer" for faction
  • start the server and neither server nor client crashed!
  • game started and 2nd client was in observer mode, as intended. I quit after a minute. All seems ok initially.

screenshot_2018-01-22_02-30-47

There wasn't much code I had to add or change (though I took the opportunity to update the license header at the top of the source files I edited).

To see the changes, take a look at https://github.com/ZetaGlest/zetaglest-source/pull/14/files

I want to clean up my code changes better though, before I merge in the changes.

from glest-source.

andy5995 avatar andy5995 commented on May 20, 2024

So far so good!

9 slots used on an 8 player map. A game running for ~23 minutes.

screenshot_2018-01-24_02-46-18

@Jammyjamjamman , would you be interested in repositioning the text? You'll see the menu next time to pull the source and load a custom game.

The text can be moved by changing some values here:

https://github.com/ZetaGlest/zetaglest-source/blob/31d91e854416384f07b512aed1ffd8ef3cdbb4ca/source/glest_game/menu/menu_state_custom_game.cpp#L200-L210

Also there are some values in menu_state_connected_game that have to be changed.

If it doesn't interest you to make changes like that, I'll do it soon.

from glest-source.

andy5995 avatar andy5995 commented on May 20, 2024

I'll make a note on the ticket for others...

There's scrollbar code being used in https://github.com/ZetaGlest/zetaglest-source/blob/464860aa023e4089f4c6f108e019d66d60052581/source/glest_game/menu/menu_state_masterserver.cpp#L75

from glest-source.

andy5995 avatar andy5995 commented on May 20, 2024

Unfortunately I didn't get this patch done in only 1 commit.

For reference, here were the first 2 parts:

42541ca
31d91e8

from glest-source.

andy5995 avatar andy5995 commented on May 20, 2024

Most recent commit that adds to this patch:

af3ff60

from glest-source.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.