Coder Social home page Coder Social logo

Comments (5)

lisdude avatar lisdude commented on June 27, 2024

This would also be nice to have for the top bar. Dream big!

from blightmud.

LiquidityC avatar LiquidityC commented on June 27, 2024

This was on my personal list already. Big Tinfugue fan here. Just need to figure how I want it to perform.

from blightmud.

LiquidityC avatar LiquidityC commented on June 27, 2024

Ok. I've finished thinking about this:

Spec:
We want something that looks like this:
Screenshot from 2020-05-26 08-36-07

This requires two new lua methods:

  • blight:set_status_area(height) Sets the height of the area (0 removes it)
  • blight:set_status_line(index, line) Prints a line in the status area. Invalid indexes does nothing

from blightmud.

lisdude avatar lisdude commented on June 27, 2024

Oh, interesting! So you were thinking a whole separate area. I was thinking of something more compact and bottom bar usurping, like this:
Screen Shot 2020-05-26 at 2 57 11 AM

I like them both for different reasons. Modifying the bottom bar directly is good for out of the way, mostly static information. But a full status area would be good for displaying more dynamically changing information, like character health / status bars and / or a minimap...

Both? 😁

from blightmud.

LiquidityC avatar LiquidityC commented on June 27, 2024

We could blight:set_status_line(index, line) to write both on the top and bottom line as well as the space between. Allowing users to create an area if they want it and write to that or just write to the existing single line. This means that the status area height will always be >= 1.

So yes, both should work with this solution.

from blightmud.

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.