1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-05-10 11:14:07 +00:00

fixup to 3D, now changeable and named correctly

This commit is contained in:
Zeno Rogue 2025-03-14 13:00:47 +01:00
parent 743800dcfd
commit 1bffc16386

View File

@ -157,7 +157,7 @@ void scramble() {
bool mouse_over_button; bool mouse_over_button;
bool seupho3 = true; bool fifteen3 = true;
bool draw_fifteen(cell *c, const shiftmatrix& V) { bool draw_fifteen(cell *c, const shiftmatrix& V) {
hr::addaura(tC0(V), darkened(0x0000FF), 0); hr::addaura(tC0(V), darkened(0x0000FF), 0);
@ -180,7 +180,7 @@ bool draw_fifteen(cell *c, const shiftmatrix& V) {
} }
else { else {
if(seupho3) { if(fifteen3) {
set_floor(cgi.shFullFloor); set_floor(cgi.shFullFloor);
ensure_floorshape_generated(shvid(c), c); ensure_floorshape_generated(shvid(c), c);
for(int i=0; i<c->type; i++) for(int i=0; i<c->type; i++)
@ -295,6 +295,8 @@ void edit_fifteen() {
}); });
} }
add_edit(fifteen3);
switch(state) { switch(state) {
case state::edited: case state::edited:
dialog::addInfo("edited"); dialog::addInfo("edited");
@ -602,6 +604,8 @@ auto fifteen_hook =
+ addHook(hooks_configfile, 100, [] { + addHook(hooks_configfile, 100, [] {
param_b(show_dots, "fifteen_dots"); param_b(show_dots, "fifteen_dots");
param_b(show_triangles, "fifteen_tris"); param_b(show_triangles, "fifteen_tris");
param_b(fifteen3, "fifteen_3d")
-> editable("3D Fifteen tile effects", '3');
}) })
+ addHook_slideshows(120, [] (tour::ss::slideshow_callback cb) { + addHook_slideshows(120, [] (tour::ss::slideshow_callback cb) {