Custom Model Load Fix

This commit is contained in:
ebolam
2022-03-07 18:44:37 -05:00
parent 70f1c2da9c
commit d1a64e25da
3 changed files with 62 additions and 41 deletions

View File

@ -1847,6 +1847,7 @@ $(document).ready(function(){
// Bind UI references
connect_status = $('#connectstatus');
button_loadmodel = $('#btn_loadmodel');
button_showmodel = $('#btn_showmodel');
button_newgame = $('#btn_newgame');
button_rndgame = $('#btn_rndgame');
button_save = $('#btn_save');
@ -2678,6 +2679,9 @@ $(document).ready(function(){
showLoadModelPopup();
socket.send({'cmd': 'list_model', 'data': 'mainmenu'});
});
button_showmodel.on("click", function(ev) {
socket.send({'cmd': 'show_model', 'data': ''});
});
button_newgame.on("click", function(ev) {
if(connected) {