mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-05 02:07:03 +00:00
rogueviz:: updated to hr changes
This commit is contained in:
parent
ebeb22c448
commit
7480d1e0ea
@ -301,7 +301,7 @@ void launch() {
|
||||
|
||||
void enable();
|
||||
|
||||
void load_fifteen(fhstream& f) {
|
||||
void load_fifteen(hstream& f) {
|
||||
int num;
|
||||
f.read(num);
|
||||
fif.clear();
|
||||
@ -334,7 +334,7 @@ void o_key(o_funcs& v) {
|
||||
void enable() {
|
||||
rogueviz::rv_hook(hooks_o_key, 80, o_key);
|
||||
rogueviz::rv_hook(hooks_drawcell, 100, draw_fifteen);
|
||||
rogueviz::rv_hook(mapstream::hooks_savemap, 100, [] (fhstream& f) {
|
||||
rogueviz::rv_hook(mapstream::hooks_savemap, 100, [] (hstream& f) {
|
||||
f.write<int>(15);
|
||||
f.write<int>(isize(fif));
|
||||
for(auto cd: fif) {
|
||||
@ -437,7 +437,7 @@ auto fifteen_hook =
|
||||
anims::moved();
|
||||
}); })
|
||||
#endif
|
||||
+ addHook(mapstream::hooks_loadmap, 100, [] (fhstream& f, int id) {
|
||||
+ addHook(mapstream::hooks_loadmap, 100, [] (hstream& f, int id) {
|
||||
if(id == 15) load_fifteen(f);
|
||||
})
|
||||
+ addHook(hooks_configfile, 100, [] {
|
||||
|
@ -796,7 +796,7 @@ void add_platf_hooks() {
|
||||
|
||||
rogueviz::rv_hook(hooks_drawcell, 90, draw_room_on_map);
|
||||
|
||||
rogueviz::rv_hook(mapstream::hooks_savemap, 100, [] (fhstream& f) {
|
||||
rogueviz::rv_hook(mapstream::hooks_savemap, 100, [] (hstream& f) {
|
||||
f.write<int>(66);
|
||||
for(auto& p: rooms) {
|
||||
f.write(mapstream::cellids[p.first]);
|
||||
@ -835,7 +835,7 @@ auto chk = arg::add3("-platformer", enable)
|
||||
}
|
||||
});
|
||||
})
|
||||
+ addHook(mapstream::hooks_loadmap, 100, [] (fhstream& f, int id) {
|
||||
+ addHook(mapstream::hooks_loadmap, 100, [] (hstream& f, int id) {
|
||||
if(id == 66) {
|
||||
println(hlog, "loading platformer");
|
||||
while(true) {
|
||||
|
@ -487,7 +487,7 @@ int pres_hooks =
|
||||
}
|
||||
}) +
|
||||
addHook(dialog::hooks_display_dialog, 100, [] () {
|
||||
if(current_screen_cfunction() == showMainMenu) {
|
||||
if(current_screen_cfunction() == showGameMenu) {
|
||||
dialog::addItem(XLAT("RogueViz demos"), 'd');
|
||||
dialog::add_action_push(choose_presentation);
|
||||
}
|
||||
|
@ -571,7 +571,7 @@ void enable() {
|
||||
rogueviz::rv_hook(anims::hooks_anim, 100, handle_animation0);
|
||||
rogueviz::rv_hook(hooks_drawcell, 100, draw_labels);
|
||||
rogueviz::rv_hook(hooks_o_key, 190, [] (o_funcs& v) { v.push_back(named_dialog("smoothcam", show)); });
|
||||
rogueviz::rv_hook(mapstream::hooks_savemap, 100, [] (fhstream& f) {
|
||||
rogueviz::rv_hook(mapstream::hooks_savemap, 100, [] (hstream& f) {
|
||||
f.write<int>(17);
|
||||
hwrite(f, anims);
|
||||
});
|
||||
@ -598,7 +598,7 @@ auto hooks = arg::add3("-smoothcam", enable_and_show)
|
||||
dialog::add_action(enable_and_show);
|
||||
}
|
||||
}) +
|
||||
+ addHook(mapstream::hooks_loadmap, 100, [] (fhstream& f, int id) {
|
||||
+ addHook(mapstream::hooks_loadmap, 100, [] (hstream& f, int id) {
|
||||
if(id == 17) {
|
||||
enable();
|
||||
hread(f, anims);
|
||||
|
Loading…
x
Reference in New Issue
Block a user