component DialogController { public DialogController() { string ParamXShare = hsWebGetQueryParam("xshare"); bool IsXShare = (ParamXShare == "1"); // Xで開いているのでGUIをX用にリサイズする if(IsXShare) Resize(); } public void OnClickedButton(string LayerName, string ButtonName) { if(LayerName == "enterdialog" || LayerName == "enterdialog_po") { if(ButtonName == "btn_enter_room") { LayerBundle layer = hsLayerGet("config_profile"); if(layer !== null) { layer.CallComponentMethod("ProfileMenuViewModel", "ClickNicknameUpdateButton", ""); //通知処理に移行する。 LayerBundle layer = hsLayerGet("notification_window_with_image"); layer.CallComponentMethod("NotificationWindowController", "FetchNotification",""); } } } } void Resize() { float ExpandRate = 1.5; hsCommonResizeGUI("enterdialog", false, "dialog_bg", ExpandRate); hsCommonResizeGUI("enterdialog", false, "text_guest", ExpandRate); hsCommonResizeGUI("enterdialog", false, "text_nickname", ExpandRate); hsCommonResizeGUI("enterdialog", false, "nickname_input_area", ExpandRate); hsCommonResizeGUI("enterdialog", false, "btn_enter_room", ExpandRate); hsCommonResizeGUI("enterdialog", false, "btn_text_use_of_terms", ExpandRate); hsCommonResizeGUI("enterdialog", false, "btn_text_privacy_policy", ExpandRate); hsCommonResizeGUI("enterdialog", false, "common_dialog_message_Slot", ExpandRate); } }