Comments (10)
Another thought, the abbreviations (P and A) are probably necessary to keep the size from getting out of control, but they should use the "abbr" tag so users can get an explanation if they hover.
from zetawar.
Thoughts on something like this? Each unit's stats are displayed in a small table in a collapsible panel.
from zetawar.
Here's an updated version with more stats. I include the text "P = Personnel" and "A = Armored" at the bottom of the modal's body for clarity.
I think it looks nice with this much info, but adding more would probably get ugly (if sticking with the React-Boostrap table-in-a-panel-in-a-column-in-a-row-in-a-grid format I'm using). Maybe using a button to open the panel beneath the unit's image/name/cost would be better, as it would allow each table to span the entire modal and give the stats room to breath.
from zetawar.
I like the idea, but there's a lot of header repetition. What about putting all the units in one table with headers at the top?
from zetawar.
Is this closer to what you were thinking? Or were you thinking of keeping the clickable part outside of the table?
from zetawar.
Yep, that's what I was thinking. I'm fine with the clickable part being inside the table.
from zetawar.
Thoughts on style?
Hovering over the type will give the full name, and hovering over the armor value will either give the capturing armor value or say that the unit cannot capture bases.
from zetawar.
The hover text sounds good, but the different size fonts in the stats cells look a little off to me. I think consistency is probably better even if it makes the table a bit sparse. For the ranges, I prefer "1-2" to "Min:1 Max:2". It would also be nice if the table column width was consistent. You should be able to accomplish that using the Bootstrap grid CSS classes (col-md-4, etc.).
from zetawar.
from zetawar.
This is on dev now. I think there are more tweaks we could do, but I'm going to call it "good enough" for now.
@Conaws Thanks for the css grid spec link! I plan to revisit the styling on this at some point. I'll definitely look into that when I do.
from zetawar.
Related Issues (20)
- Enable different tilesets HOT 3
- Make DataScript compatible with self-hosted ClojureScript HOT 5
- Reorganize data.cljs HOT 1
- Redesign unit picker
- Make rules/data more discoverable
- Create a system to search for rules issues using AIs
- Add specs
- Add sniper unit
- Add more armored units
- Add water units
- Add air units
- Add transport unit HOT 14
- Base repair amount on ratio rather than fixed increment HOT 1
- Enable localizations of UI HOT 3
- Create GUI map/scenario editor HOT 2
- Expand README
- Remove event router dependency on Reagent HOT 3
- Disable input when AI is playing
- Add new map to show off water/naval units HOT 8
- Sort TODOs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zetawar.