IntelligenceModding / Advanced-Peripherals-Features

A place for the feature request for Advanced Peripherals
0 stars 1 forks source link

[Feature Request] Add more interactive events on monitor and computer for players #12

Open zyxkad opened 1 year ago

zyxkad commented 1 year ago

Describe your idea

Make monitors and computers can identify player in actions

We should still queue monitor_touch event, but add player's name as the last value

Describe alternatives you've considered if you've any

N/A

Additional context

probably mouse events and key presses can also have this param, and if on computer, you may add new events called player_open or player_closed to open or close computer, for player_open, the program may abort the action

Linked Issues

No response

SirEndii commented 1 year ago

I doubt that I'll ever do soemthing like this. I would not add/change an existing event - that would be better if CC:T implements itself and adding a new monitor isn't something I want to do

zyxkad commented 1 year ago

I doubt that I'll ever do soemthing like this. I would not add/change an existing event - that would be better if CC:T implements itself and adding a new monitor isn't something I want to do

Well, but CC:T won't impl that https://github.com/cc-tweaked/CC-Tweaked/issues/596

SirEndii commented 1 year ago

Yeah, but I don't get around adding this for 0.8 Someone could make a pr - but AP is currently a bit paused for me

zyxkad commented 1 year ago

Nvm, if I have time I can try to implement it (probably not, I don't know much about forge api).

zyxkad commented 1 year ago

I check the CC:T codes, if I want to impl that, I should use mixin, because the signature of the monitorTouched method don't have player param. I'm not sure if you would like to do that.

    void monitorTouched(float xPos, float yPos, float zPos)
SirEndii commented 1 year ago

Yeah. That's a reason why I do bot want to add features to existing blocks from CC

zyxkad commented 2 months ago

I may working on this with #6 , so both transparentable and identifiable on same block this or next month if possible