File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -974,6 +974,10 @@ local revert = {
974974 init = function (self )
975975 local sr = save_run
976976 function save_run ()
977+ -- Sneaking this here but hopefully fixes pointer UI crashes
978+ if G .GAME .USING_CODE then
979+ return
980+ end
977981 if G .GAME .round_resets .ante ~= G .GAME .cry_revert_ante then
978982 G .GAME .cry_revert_ante = G .GAME .round_resets .ante
979983 G .GAME .cry_revert = nil
Original file line number Diff line number Diff line change 708708function Cryptid .forced_edition ()
709709 return G .GAME .modifiers .cry_force_edition or G .GAME .used_vouchers .v_cry_curate
710710end
711+
712+ -- Add Ctrl+Space for Pointer UI in Debug Mode
713+ local ckpu = Controller .key_press_update
714+ function Controller :key_press_update (key , dt )
715+ ckpu (self , key , dt )
716+ if key == " space" and G .STAGE == G .STAGES .RUN and not _RELEASE_MODE and (self .held_keys [' lctrl' ] or self .held_keys [' rctrl' ] or self .held_keys [' lgui' ] or self .held_keys [' rgui' ]) and not G .GAME .USING_CODE then
717+ G .GAME .USING_CODE = true
718+ G .GAME .USING_POINTER = true
719+ G .ENTERED_CARD = " "
720+ G .CHOOSE_CARD = UIBox ({
721+ definition = create_UIBox_pointer (card ),
722+ config = {
723+ align = " cm" ,
724+ offset = { x = 0 , y = 10 },
725+ major = G .ROOM_ATTACH ,
726+ bond = " Weak" ,
727+ instance_type = " POPUP" ,
728+ },
729+ })
730+ G .CHOOSE_CARD .alignment .offset .y = 0
731+ G .ROOM .jiggle = G .ROOM .jiggle + 1
732+ G .CHOOSE_CARD :align_to_major ()
733+ end
734+ end
You can’t perform that action at this time.
0 commit comments