Skip to content

Commit

Permalink
Add new button Fix Chat 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalFaceLesS committed Jun 1, 2024
1 parent 97971d8 commit 3c3f5b6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mod_celadon/qol/_qol.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/datum/modpack/QoL
name = "Quality of Life"
desc = "Добавляет хотфикс кнопок, новую прическу, возвращает мензорские очки. Добавлены баблы для эмоций. Уменьшаем размер разогревочному пакету."
author = "RalseiDreemuurr, MrCat15352"
desc = @{"Добавляет хотфикс кнопок, новую прическу, возвращает мензорские очки.
Добавлены баблы для эмоций.
Уменьшаем размер разогревочному пакету.
Добавлена универсальная кнопка FixChat2."}
author = "RalseiDreemuurr, MrCat15352, MysticalFaceLesS"

1 change: 1 addition & 0 deletions mod_celadon/qol/_qol.dme
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
#include "code/glasses.dm"
#include "code/food_and_drinks.dm"
#include "code/gun.dm"
#include "code/fixchat2.dm"

#endif
24 changes: 24 additions & 0 deletions mod_celadon/qol/code/fixchat2.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// FixChat2, ускоренная версия FixChat => code\modules\tgui_panel\external.dm
//

/client/verb/fix_tgui_panel_2()
set name = "Fix chat 2"
set category = "OOC"
set waitfor = FALSE

winset(src, "output", "on-show=&is-disabled=0&is-visible=1")
winset(src, "browseroutput", "is-disabled=1;is-visible=0")

sleep(1)
if (!tgui_panel || !istype(tgui_panel))
tgui_panel = new(src)
tgui_panel.initialize(force = TRUE)

sleep(1)
if (tgui_panel)
tgui_panel.window.send_message("ping", force = TRUE)

sleep(1)
winset(src, "output", "is-disabled=1&is-visible=0")
winset(src, "browseroutput", "is-disabled=0;is-visible=1")

0 comments on commit 3c3f5b6

Please sign in to comment.