OpenDreamProject / OpenDream

A project for running games made in the DM programming language
MIT License
208 stars 112 forks source link

`.winset :map` is not implemented #1936

Closed ike709 closed 2 months ago

ike709 commented 2 months ago
macro "default"
    elem ".winset :map.right-click=false"
        name = "SHIFT+Shift"
    elem "Shift"
        name = "SHIFT"
        command = ".winset :map.right-click=false"
    elem "ShiftUp"
        name = "SHIFT+UP"
        command = ".winset :map.right-click=true"

This is needed for TG Shift+RMB behavior, which just causes the context menu to appear by temporarily disabling the right-click parameter.

wixoaGit commented 2 months ago

Relevant DM reference page: https://www.byond.com/docs/ref/#/proc/winset

Another valid form is ":[type]" which selects the default control of that type, e.g. ":map" for the main map.

ike709 commented 2 months ago

Changing :map to map does not appear to work either.