디자인 적용 중
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
using UVC.Factory.Playback;
|
||||
using UVC.Locale;
|
||||
using UVC.UI.Commands;
|
||||
using UVC.UI.Toolbar.Model;
|
||||
@@ -37,83 +38,67 @@ namespace UVC.UI.Toolbar
|
||||
}
|
||||
|
||||
// --- 툴바 모델 구성 ---
|
||||
// 컴포넌트 목록
|
||||
mainToolbar.AddStandardButton("컴포넌트 목록",
|
||||
"Prefabs/UI/Toolbar/images/ic_menu_elements",
|
||||
new ActionCommand(() => Debug.Log("컴포넌트 목록 버튼 클릭됨")),
|
||||
"컴포넌트 목록 창을 엽니다.");
|
||||
|
||||
// 요청하신 기능으로 툴바 구성
|
||||
// 1. 카메라 조절 (RadioButtonGroup)
|
||||
// playback
|
||||
mainToolbar.AddStandardButton("Playback",
|
||||
"Prefabs/UI/Toolbar/images/ic_menu_playback",
|
||||
new PlaybackCommand(),
|
||||
"Playback을 실행 시킵니다.");
|
||||
|
||||
// 화면 캡처
|
||||
mainToolbar.AddStandardButton("button_capture_screen",
|
||||
"Prefabs/UI/Toolbar/images/ic_menu_capture",
|
||||
new ActionCommand(() => Debug.Log("화면 캡처 버튼 클릭됨")),
|
||||
"tooltip_capture_screen");
|
||||
|
||||
// 화면 녹화 시작/중지 (ToggleButton)
|
||||
mainToolbar.AddToggleButton("button_record_screen", false,
|
||||
"Prefabs/UI/Toolbar/images/ic_menu_camera_on",
|
||||
"Prefabs/UI/Toolbar/images/ic_menu_camera_off",
|
||||
(isSelected) => Debug.Log($"화면 녹화 상태: {(isSelected ? "녹화 중" : "중지")} (OnToggle 콜백)"),
|
||||
new ActionCommand<bool>((isRecording) => Debug.Log($"화면 녹화 Command 실행: {(isRecording ? "녹화 시작" : "녹화 중지")}")),
|
||||
"tooltip_record_screen");
|
||||
|
||||
// 화면 확대
|
||||
mainToolbar.AddStandardButton("화면 확대",
|
||||
"Prefabs/UI/Toolbar/images/ic_menu_zoom_in",
|
||||
new ActionCommand(() => Debug.Log("화면 확대 버튼 클릭됨")),
|
||||
"화면을 한 단계 확대 합니다.");
|
||||
|
||||
//화면 축소
|
||||
mainToolbar.AddStandardButton("화면 축소",
|
||||
"Prefabs/UI/Toolbar/images/ic_menu_zoom_out",
|
||||
new ActionCommand(() => Debug.Log("화면 축소 버튼 클릭됨")),
|
||||
"화면을 한 단계 축소 합니다.");
|
||||
|
||||
// RadioButtonGroup 샘플
|
||||
mainToolbar.AddRadioButton("CameraControlGroup", "Top View", true,
|
||||
"Prefabs/UI/Toolbar/images/ic_camera_top_on",
|
||||
"Prefabs/UI/Toolbar/images/ic_camera_top_off",
|
||||
"Prefabs/UI/Toolbar/images/ic_camera_top_off_white",
|
||||
(isSelected) => { if (isSelected) Debug.Log("탑뷰 카메라 선택됨"); },
|
||||
new ActionCommand(() => Debug.Log("탑뷰 카메라 Command 실행")),
|
||||
"Top View 시점으로 변경합니다.");
|
||||
mainToolbar.AddRadioButton("CameraControlGroup", "Quarter View", false,
|
||||
"Prefabs/UI/Toolbar/images/ic_camera_quarter_on",
|
||||
"Prefabs/UI/Toolbar/images/ic_camera_quarter_off",
|
||||
"Prefabs/UI/Toolbar/images/ic_camera_quarter_off_white",
|
||||
(isSelected) => { if (isSelected) Debug.Log("쿼터뷰 카메라 선택됨"); },
|
||||
new ActionCommand(() => Debug.Log("쿼터뷰 카메라 Command 실행")),
|
||||
"Quarter View 시점으로 변경합니다.");
|
||||
mainToolbar.AddRadioButton("CameraControlGroup", "Front View", false,
|
||||
"Prefabs/UI/Toolbar/images/ic_camera_top_on",
|
||||
"Prefabs/UI/Toolbar/images/ic_camera_top_off",
|
||||
"Prefabs/UI/Toolbar/images/ic_camera_top_off_white",
|
||||
(isSelected) => { if (isSelected) Debug.Log("프런트뷰 카메라 선택됨"); },
|
||||
new ActionCommand(() => Debug.Log("프런트뷰 카메라 Command 실행")),
|
||||
"Front View 시점으로 변경합니다.");
|
||||
|
||||
// 2. 구분선
|
||||
// 구분선
|
||||
mainToolbar.AddSeparator();
|
||||
|
||||
// 3. 객체 선택
|
||||
mainToolbar.AddStandardButton("선택",
|
||||
"Prefabs/UI/Toolbar/images/ic_select_white",
|
||||
new ActionCommand(() => Debug.Log("객체 선택 버튼 클릭됨")),
|
||||
"객체를 선택합니다.");
|
||||
|
||||
// 4. 객체 이동
|
||||
mainToolbar.AddStandardButton("이동",
|
||||
"Prefabs/UI/Toolbar/images/ic_move_white",
|
||||
new ActionCommand(() => Debug.Log("객체 이동 버튼 클릭됨")),
|
||||
"객체를 이동 시킵니다.");
|
||||
|
||||
// 5. 객체 회전
|
||||
mainToolbar.AddStandardButton("회전",
|
||||
"Prefabs/UI/Toolbar/images/ic_rotation_white",
|
||||
new ActionCommand(() => Debug.Log("객체 회전 버튼 클릭됨")),
|
||||
"객체의 각도를 조절합니다.");
|
||||
|
||||
// 6. 객체 크기조절
|
||||
mainToolbar.AddStandardButton("크기조절",
|
||||
"Prefabs/UI/Toolbar/images/ic_scale_white",
|
||||
new ActionCommand(() => Debug.Log("객체 크기조절 버튼 클릭됨")),
|
||||
"객체 크기를 조절합니다.");
|
||||
|
||||
// 7. 객체 복제
|
||||
mainToolbar.AddStandardButton("복제",
|
||||
"Prefabs/UI/Toolbar/images/ic_copy_white",
|
||||
new ActionCommand(() => Debug.Log("객체 복제 버튼 클릭됨")),
|
||||
"객체를 복제 합니다.");
|
||||
|
||||
// 8. 객체 삭제
|
||||
mainToolbar.AddStandardButton("삭제",
|
||||
"Prefabs/UI/Toolbar/images/ic_delete_white",
|
||||
new ActionCommand(() => Debug.Log("객체 삭제 버튼 클릭됨")),
|
||||
"객체를 삭제 합니다.");
|
||||
|
||||
mainToolbar.AddSeparator();
|
||||
|
||||
// 9. 화면 캡처
|
||||
mainToolbar.AddStandardButton("button_capture_screen",
|
||||
"Prefabs/UI/Toolbar/images/ic_capture_white",
|
||||
new ActionCommand(() => Debug.Log("화면 캡처 버튼 클릭됨")),
|
||||
"tooltip_capture_screen");
|
||||
|
||||
// 10. 화면 녹화 시작/중지 (ToggleButton)
|
||||
mainToolbar.AddToggleButton("button_record_screen", false,
|
||||
"Prefabs/UI/Toolbar/images/ic_record_on",
|
||||
"Prefabs/UI/Toolbar/images/ic_record_off",
|
||||
(isSelected) => Debug.Log($"화면 녹화 상태: {(isSelected ? "녹화 중" : "중지")} (OnToggle 콜백)"),
|
||||
new ActionCommand<bool>((isRecording) => Debug.Log($"화면 녹화 Command 실행: {(isRecording ? "녹화 시작" : "녹화 중지")}")),
|
||||
"tooltip_record_screen");
|
||||
|
||||
|
||||
// 기존 확장 버튼 (예시로 남겨두거나 필요에 따라 수정/제거)
|
||||
var expandableBtnModel = mainToolbar.AddExpandableButton("button_brush_size",
|
||||
|
||||
Reference in New Issue
Block a user