Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

[TGUI] Orbit #90

Merged
merged 5 commits into from
Feb 16, 2024
Merged

[TGUI] Orbit #90

merged 5 commits into from
Feb 16, 2024

Conversation

AyIong
Copy link
Collaborator

@AyIong AyIong commented Feb 16, 2024

Что этот PR делает

Копипизднул Orbit и прочие плюшки для гостов - ss220-space/Baystation12#721

Почему это хорошо для игры

Удобно ебать

Изображения изменений

Скриншоты

image

Тестирование

Ага

Changelog

🆑
add: Добавлены плюшки для гостов, в том числе Orbit
/:cl:

@github-actions github-actions bot added 🍚 Спрайты Вы заработали свою миска-рис и кошко-жена. Партия гордится вами! TGUI Красивые интерфейсики. labels Feb 16, 2024
@Gaxeer Gaxeer merged commit b59b27f into ss220club:master Feb 16, 2024
10 checks passed
Comment on lines +17 to +23
if(!istype(Atom, /obj/screen))
stop_following()
following = Atom
GLOB.destroyed_event.register(Atom, src, PROC_REF(stop_following))
GLOB.moved_event.register(Atom, src, PROC_REF(keep_following))
GLOB.dir_set_event.register(Atom, src, TYPE_PROC_REF(/atom, recursive_dir_set))
keep_following(new_loc = get_turf(following))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(!istype(Atom, /obj/screen))
stop_following()
following = Atom
GLOB.destroyed_event.register(Atom, src, PROC_REF(stop_following))
GLOB.moved_event.register(Atom, src, PROC_REF(keep_following))
GLOB.dir_set_event.register(Atom, src, TYPE_PROC_REF(/atom, recursive_dir_set))
keep_following(new_loc = get_turf(following))
if(istype(Atom, /obj/screen))
return
stop_following()
following = Atom
GLOB.destroyed_event.register(Atom, src, PROC_REF(stop_following))
GLOB.moved_event.register(Atom, src, PROC_REF(keep_following))
GLOB.dir_set_event.register(Atom, src, TYPE_PROC_REF(/atom, recursive_dir_set))
keep_following(new_loc = get_turf(following))

@AyIong AyIong deleted the tgui-converts branch February 16, 2024 14:45
Comment on lines +601 to +611
/mob/observer/ghost/proc/add_ghost_buttons()
var/jumptomob = new /obj/screen/ghost/jumptomob()
var/orbit = new /obj/screen/ghost/orbit()
var/reenter_corpse = new /obj/screen/ghost/reenter_corpse()
var/teleport = new /obj/screen/ghost/teleport()
var/toggle_darkness = new /obj/screen/ghost/toggle_darkness()
client.screen.Add(jumptomob)
client.screen.Add(orbit)
client.screen.Add(reenter_corpse)
client.screen.Add(teleport)
client.screen.Add(toggle_darkness)
Copy link

@Furrior Furrior Feb 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно сделать статик лист типов кнопок и проходясь по нему, создавать экземпляры и давать клиенту

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Потом рефакторнем

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🍚 Спрайты Вы заработали свою миска-рис и кошко-жена. Партия гордится вами! TGUI Красивые интерфейсики.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants