Giter Site home page Giter Site logo

Comments (4)

timfel avatar timfel commented on May 24, 2024

(by joris-dauphin)
local and block in lua: http://www.lua.org/pil/4.2.html

You should try (untested).
-- 8< --
local info_panel_y
if ((Video.Width == 800) and (Video.Height == 480)) then
info_panel_y = 160
else
info_panel_y = Video.Height - 136 - 24 - 16
end
-- >8 --

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by erstmap)
Fantastic, that did the trick!

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by dinky-dye-aussie)
I was thinking about this code you're on about Kyran. Made me wonder if in fact I could make interface for the higher resolutions that are a bit chunkier and fill up a bit more space on screen, so we could have higher resolution interface pieces.

When you think about it, the wargus interface at anything above say, 1280 wide, could do with a bit of beefing up, to support bigger set pieces and bigger buttons ... it would be great to have higher resolution fonts. I have seen that Warwind game on the forums, and all of the interfaces look amazing, and they use a bit higher resolution fonts.

It's something to think about, but if that was the case, would I be able to use the same sort of code you have used here, to make it so the higher resolutions use the higher resolution set pieces?

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by erstmap)
Yes.

from stratagus.

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.