Dustin Carlino
|
202cfcf0d6
|
hack in a mask to change the color of image buttons without backgrounds
|
2019-11-26 10:59:33 -08:00 |
|
Dustin Carlino
|
188b2fd372
|
adding in some image buttons for the main menu. no highlighting yet.
wrong bounding boxes.
|
2019-11-25 19:31:39 -08:00 |
|
Dustin Carlino
|
dfd036300b
|
refactor: make text_dims return ScreenDims. also, update the logo image
|
2019-11-25 17:38:37 -08:00 |
|
Dustin Carlino
|
573edbd13e
|
adding the logo to the title screen and filling out some credits
|
2019-11-24 19:09:07 -08:00 |
|
Dustin Carlino
|
1440a8630b
|
prototyping a text button, using it for a title screen
|
2019-11-24 15:23:28 -08:00 |
|
Dustin Carlino
|
a2ea691fa3
|
fix the 16 texture limit on mac properly, by using texture arrays for icons
|
2019-11-24 07:38:32 -08:00 |
|
Dustin Carlino
|
e7bda09978
|
simple perf boosts: avoiding some unnecessary GPU uploads every frame
|
2019-11-22 14:06:44 -08:00 |
|
Dustin Carlino
|
db86a24cda
|
draw button text in the OSD (not owned by ezgui), not as a mouse tooltip
|
2019-11-01 11:45:02 -07:00 |
|
Dustin Carlino
|
a94e210c22
|
changing speed controls to be a panel of manually arranged buttons. not
done, but functionality is cutover. fix details later.
|
2019-10-30 15:01:11 -07:00 |
|
Dustin Carlino
|
7faeafd998
|
nice hatching for construction lanes, hackily encoded
|
2019-10-29 17:19:36 -07:00 |
|
Dustin Carlino
|
d757b45bff
|
manually workaround y inversion with stretched textures by modifying the
images
|
2019-10-29 16:36:19 -07:00 |
|
Dustin Carlino
|
7d7bfef5ea
|
filter out parking garages with 0 spots. render water on top of parks,
to workaround issue of the green lake park polygon covering everything
up
|
2019-10-26 11:37:10 -07:00 |
|
Dustin Carlino
|
cb4720946c
|
experiment with texturing cars, with some fun UV coordinates. looks half
reasonable when it works. breaks on duplicate points, not sure what's
wrong yet
|
2019-10-24 14:07:03 -07:00 |
|
Dustin Carlino
|
17e02ebdf0
|
adding in support for rotating textures, except missing y-inversion
|
2019-10-23 16:30:23 -07:00 |
|
Dustin Carlino
|
d133dfd152
|
experimentally use textures for pedestrians. add support for stretching
texture coordinates
|
2019-10-23 15:46:00 -07:00 |
|
Dustin Carlino
|
430b1245c4
|
working on a new traffic signal scroller. disabled. decent start.
|
2019-10-13 18:44:19 -07:00 |
|
Dustin Carlino
|
5304aa6ecf
|
trying out permanent sidebar in map_editor. no more tooltips
|
2019-10-13 15:31:17 -07:00 |
|
Dustin Carlino
|
d82263978b
|
simpler context menu impl. finally delete the old one
|
2019-10-12 14:53:27 -07:00 |
|
Dustin Carlino
|
0ea138aa02
|
adding show/hide functionality back to modalmenu, but WAY more cleanly
|
2019-10-11 15:00:08 -07:00 |
|
Dustin Carlino
|
da0b880484
|
place mouse tooltips away from screen edge, just like context menus
|
2019-10-09 11:21:04 -07:00 |
|
Dustin Carlino
|
5f9cf2accd
|
display basic labels on trip stats
|
2019-10-01 19:28:03 -07:00 |
|
Dustin Carlino
|
672899c20f
|
better synthetic drawing: lanes offset properly (still buggy...), draw center line
|
2019-09-12 10:25:34 -07:00 |
|
Dustin Carlino
|
224461fcdc
|
plumb hatching bit in the style vertex attrib, not this awkward stateful uniform value
|
2019-09-11 11:06:57 -07:00 |
|
Dustin Carlino
|
7eae18b71a
|
tiling all the textures seamlessly, instead of stretching
|
2019-09-11 10:46:03 -07:00 |
|
Dustin Carlino
|
ac131ebedf
|
moving some things around ezgui; i can never remember where to find some structs
|
2019-09-11 09:03:59 -07:00 |
|
Dustin Carlino
|
9867619c9c
|
generalize ezgui Color to also cleanly represent textured things
|
2019-09-10 16:41:35 -07:00 |
|
Dustin Carlino
|
9a624397e0
|
supporting up to 10 textures
|
2019-09-10 15:44:07 -07:00 |
|
Dustin Carlino
|
fdd770088d
|
very hacky, minimal impl of texturing water
|
2019-09-10 15:21:58 -07:00 |
|
Dustin Carlino
|
e6bf997bee
|
simplify glium uniforms storage
|
2019-09-10 14:08:05 -07:00 |
|
Dustin Carlino
|
56ea90c787
|
draw map-space text with proper z-ordering
|
2019-08-15 10:30:17 -07:00 |
|
Dustin Carlino
|
caddf69dcc
|
cache unzoomed agent geometry when possible
|
2019-08-14 14:44:43 -07:00 |
|
Dustin Carlino
|
c50830c4c0
|
add an extra scaling factor to map-space text, so we can draw in a reasonable font size, then squish down without losing quality
|
2019-08-13 11:24:04 -07:00 |
|
Dustin Carlino
|
5dc92e6eb8
|
strong steps towards real map-space text. not quite working yet, but
this shouldn't break anything in the meantime.
|
2019-08-12 15:38:57 -07:00 |
|
Dustin Carlino
|
6738de2488
|
draw text beneath Sliders, not in the ModalMenu
|
2019-06-20 14:48:32 -07:00 |
|
Dustin Carlino
|
110140f391
|
union make_arrow polygon
|
2019-05-28 18:05:10 -07:00 |
|
Dustin Carlino
|
788cd237a8
|
upload traffic signal Drawable once per state change
|
2019-05-23 11:31:28 -07:00 |
|
Dustin Carlino
|
de51b1c154
|
simplify some render/ code by using GeomBatch
|
2019-05-17 13:14:58 -07:00 |
|
Dustin Carlino
|
db04553626
|
batch traffic signal drawing
|
2019-05-16 17:55:26 -07:00 |
|
Dustin Carlino
|
f4620c1951
|
add basic hatching support to fragment shader. use it to visualize map
edits when zoomed in
|
2019-05-12 17:59:12 -07:00 |
|
Dustin Carlino
|
73f32854be
|
fix up other ezgui apps, run clippy
|
2019-05-04 17:25:05 -07:00 |
|
Dustin Carlino
|
951e2f37ce
|
flush text to display immediately, not at the end. prerequisite to drawing scaled text better
|
2019-05-04 15:36:40 -07:00 |
|
Dustin Carlino
|
3db78d1ddd
|
hacky way of showing context menu hotkeys in OSD
|
2019-05-03 14:21:43 -07:00 |
|
Dustin Carlino
|
4b4e6f17a0
|
start a really basic OSD
|
2019-05-02 12:38:12 -05:00 |
|
Dustin Carlino
|
2f6cc5fe4d
|
remove vestiges of top menu being in the way
|
2019-04-28 20:10:00 -07:00 |
|
Dustin Carlino
|
6c247d376c
|
clean up ezgui draw() API by putting screencap and naming_hint inside GfxCtx
|
2019-04-23 15:42:15 -07:00 |
|
Dustin Carlino
|
e627930757
|
draw text in map-space, except drawing zoomed-in text is extremely slow!
|
2019-04-23 14:12:30 -07:00 |
|
Dustin Carlino
|
320c91faf7
|
bam, variable font size
|
2019-04-22 20:17:18 -07:00 |
|
Dustin Carlino
|
008b2f9de5
|
preps for variable font size
|
2019-04-22 20:02:18 -07:00 |
|
Dustin Carlino
|
4eece7bae7
|
borrow text to draw, stop cloning everywhere
|
2019-04-22 13:29:24 -07:00 |
|
Dustin Carlino
|
0772e6e3c8
|
make_arrow only for PolyLine, simplify and improve the result in most
cases
|
2019-04-12 15:06:44 -07:00 |
|