I have an idea but no clue how to implement this:
the lua part:
function wait_for_roadbuilding() local game_type = wl.Game().game_type if game_type = singleplayer then _await_animation() while (wl.ui.MapView().is_building_road) do sleep(2000) end end end
The c++ part I got from src/wui/tribal_encyclopedia.cc
if (game->game_controller()->get_game_type() == GameController::GameType::kSingleplayer) { cr->push_arg("singleplayer"); } else { cr->push_arg("multiplayer"); }
So if someone with more knowledge could do this..
« Back to merge proposal
I have an idea but no clue how to implement this:
the lua part:
function wait_for_ roadbuilding( ) animation( ) MapView( ).is_building_ road) do sleep(2000) end
local game_type = wl.Game().game_type
if game_type = singleplayer then
_await_
while (wl.ui.
end
end
The c++ part I got from src/wui/ tribal_ encyclopedia. cc
if (game-> game_controller ()->get_ game_type( ) == GameController: :GameType: :kSingleplayer) { >push_arg( "singleplayer" ); >push_arg( "multiplayer" );
cr-
} else {
cr-
}
So if someone with more knowledge could do this..