From 037a1e9c0cd636ab050d31150a01ca253cb70972 Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 11 Jul 2018 01:15:22 +0900 Subject: [PATCH] =?UTF-8?q?=ED=88=B4=ED=8C=81=20=EC=A4=80=EB=B9=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_template.php | 11 +++++++++++ hwe/templates/tooltip.php | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 hwe/templates/tooltip.php diff --git a/hwe/func_template.php b/hwe/func_template.php index a5e9af0f..9081d141 100644 --- a/hwe/func_template.php +++ b/hwe/func_template.php @@ -64,6 +64,17 @@ function CoreTurnTable() { "; } +function displaySpecialInfo(?int $type):string{ + $info = getSpecialInfo($type); + $text = getGenSpecial($type); + + $templates = new \League\Plates\Engine(__dir__.'/templates'); + + return $templates->render('tooltip', [ + 'text'=>$text, + 'info'=>$info, + ]); +} function allButton() { $db = DB::db(); diff --git a/hwe/templates/tooltip.php b/hwe/templates/tooltip.php new file mode 100644 index 00000000..c0a9661c --- /dev/null +++ b/hwe/templates/tooltip.php @@ -0,0 +1,7 @@ +
+ + + + + +
\ No newline at end of file