A6: Add main menu and run creation lifecycle #17
@@ -42,37 +42,38 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBox_panel")
|
||||
|
||||
[node name="Title" type="Label" parent="Panel"]
|
||||
[node name="Layout" type="VBoxContainer" parent="Panel"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 9
|
||||
|
||||
[node name="Title" type="Label" parent="Panel/Layout"]
|
||||
custom_minimum_size = Vector2(0, 32)
|
||||
layout_mode = 2
|
||||
offset_top = 18.0
|
||||
offset_right = 480.0
|
||||
offset_bottom = 48.0
|
||||
theme_override_colors/font_color = Color(0.96, 0.84, 0.44, 1)
|
||||
theme_override_font_sizes/font_size = 28
|
||||
text = "NEW RUN"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Fields" type="VBoxContainer" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 30.0
|
||||
offset_top = 62.0
|
||||
offset_right = 510.0
|
||||
offset_bottom = 462.0
|
||||
theme_override_constants/separation = 9
|
||||
[node name="Fields" type="VBoxContainer" parent="Panel/Layout"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 6
|
||||
|
||||
[node name="NameLabel" type="Label" parent="Panel/Fields"]
|
||||
[node name="NameLabel" type="Label" parent="Panel/Layout/Fields"]
|
||||
layout_mode = 2
|
||||
text = "Character name"
|
||||
|
||||
[node name="NameEdit" type="LineEdit" parent="Panel/Fields"]
|
||||
[node name="NameEdit" type="LineEdit" parent="Panel/Layout/Fields"]
|
||||
custom_minimum_size = Vector2(0, 31)
|
||||
layout_mode = 2
|
||||
placeholder_text = "Sans-Nom"
|
||||
|
||||
[node name="ArchetypeLabel" type="Label" parent="Panel/Fields"]
|
||||
[node name="ArchetypeLabel" type="Label" parent="Panel/Layout/Fields"]
|
||||
layout_mode = 2
|
||||
text = "Base archetype"
|
||||
|
||||
[node name="ArchetypeOption" type="OptionButton" parent="Panel/Fields"]
|
||||
[node name="ArchetypeOption" type="OptionButton" parent="Panel/Layout/Fields"]
|
||||
custom_minimum_size = Vector2(0, 31)
|
||||
layout_mode = 2
|
||||
item_count = 3
|
||||
selected = 0
|
||||
@@ -86,23 +87,26 @@ popup/item_2/text = "Scout"
|
||||
popup/item_2/id = 2
|
||||
popup/item_2/metadata = "scout"
|
||||
|
||||
[node name="PetCheck" type="CheckBox" parent="Panel/Fields"]
|
||||
[node name="PetCheck" type="CheckBox" parent="Panel/Layout/Fields"]
|
||||
custom_minimum_size = Vector2(0, 27)
|
||||
layout_mode = 2
|
||||
text = "Bring a pet companion"
|
||||
|
||||
[node name="SeedLabel" type="Label" parent="Panel/Fields"]
|
||||
[node name="SeedLabel" type="Label" parent="Panel/Layout/Fields"]
|
||||
layout_mode = 2
|
||||
text = "Generation seed"
|
||||
|
||||
[node name="SeedEdit" type="LineEdit" parent="Panel/Fields"]
|
||||
[node name="SeedEdit" type="LineEdit" parent="Panel/Layout/Fields"]
|
||||
custom_minimum_size = Vector2(0, 31)
|
||||
layout_mode = 2
|
||||
placeholder_text = "Enter a seed"
|
||||
|
||||
[node name="DifficultyLabel" type="Label" parent="Panel/Fields"]
|
||||
[node name="DifficultyLabel" type="Label" parent="Panel/Layout/Fields"]
|
||||
layout_mode = 2
|
||||
text = "Difficulty"
|
||||
|
||||
[node name="DifficultyOption" type="OptionButton" parent="Panel/Fields"]
|
||||
[node name="DifficultyOption" type="OptionButton" parent="Panel/Layout/Fields"]
|
||||
custom_minimum_size = Vector2(0, 31)
|
||||
layout_mode = 2
|
||||
item_count = 4
|
||||
selected = 1
|
||||
@@ -119,11 +123,12 @@ popup/item_3/text = "Masochiste"
|
||||
popup/item_3/id = 3
|
||||
popup/item_3/metadata = "masochiste"
|
||||
|
||||
[node name="DeathModeLabel" type="Label" parent="Panel/Fields"]
|
||||
[node name="DeathModeLabel" type="Label" parent="Panel/Layout/Fields"]
|
||||
layout_mode = 2
|
||||
text = "Death mode"
|
||||
|
||||
[node name="PermadeathOption" type="OptionButton" parent="Panel/Fields"]
|
||||
[node name="PermadeathOption" type="OptionButton" parent="Panel/Layout/Fields"]
|
||||
custom_minimum_size = Vector2(0, 31)
|
||||
layout_mode = 2
|
||||
item_count = 2
|
||||
selected = 0
|
||||
@@ -132,27 +137,24 @@ popup/item_0/id = 0
|
||||
popup/item_1/text = "Permadeath — one life"
|
||||
popup/item_1/id = 1
|
||||
|
||||
[node name="ValidationLabel" type="Label" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 30.0
|
||||
offset_top = 472.0
|
||||
offset_right = 510.0
|
||||
offset_bottom = 497.0
|
||||
[node name="ValidationLabel" type="Label" parent="Panel/Layout"]
|
||||
custom_minimum_size = Vector2(0, 25)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(1, 0.48, 0.44, 1)
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="StartRunButton" type="Button" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 115.0
|
||||
offset_top = 510.0
|
||||
offset_right = 295.0
|
||||
offset_bottom = 554.0
|
||||
[node name="Actions" type="HBoxContainer" parent="Panel/Layout"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
alignment = 1
|
||||
|
||||
[node name="StartRunButton" type="Button" parent="Panel/Layout/Actions"]
|
||||
custom_minimum_size = Vector2(180, 44)
|
||||
layout_mode = 2
|
||||
text = "START RUN"
|
||||
|
||||
[node name="CancelButton" type="Button" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 305.0
|
||||
offset_top = 510.0
|
||||
offset_right = 425.0
|
||||
offset_bottom = 554.0
|
||||
[node name="CancelButton" type="Button" parent="Panel/Layout/Actions"]
|
||||
custom_minimum_size = Vector2(120, 44)
|
||||
layout_mode = 2
|
||||
text = "BACK"
|
||||
|
||||
+45
-46
@@ -14,6 +14,10 @@ corner_radius_top_left = 8
|
||||
corner_radius_top_right = 8
|
||||
corner_radius_bottom_right = 8
|
||||
corner_radius_bottom_left = 8
|
||||
content_margin_left = 56.0
|
||||
content_margin_top = 40.0
|
||||
content_margin_right = 56.0
|
||||
content_margin_bottom = 40.0
|
||||
|
||||
[node name="MainMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
@@ -49,74 +53,69 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBox_menu")
|
||||
|
||||
[node name="Title" type="Label" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_top = 40.0
|
||||
offset_right = 490.0
|
||||
offset_bottom = 86.0
|
||||
[node name="Layout" type="VBoxContainer" parent="Menu"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 9
|
||||
|
||||
[node name="Title" type="Label" parent="Menu/Layout"]
|
||||
custom_minimum_size = Vector2(0, 46)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.96, 0.84, 0.44, 1)
|
||||
theme_override_font_sizes/font_size = 34
|
||||
text = "DUNGEON CRAWLER WORLD"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Subtitle" type="Label" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_top = 91.0
|
||||
offset_right = 490.0
|
||||
offset_bottom = 116.0
|
||||
[node name="Subtitle" type="Label" parent="Menu/Layout"]
|
||||
custom_minimum_size = Vector2(0, 25)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.7, 0.82, 0.94, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "THE DUNGEON AWAITS"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="NewRunButton" type="Button" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_left = 120.0
|
||||
offset_top = 144.0
|
||||
offset_right = 370.0
|
||||
offset_bottom = 184.0
|
||||
[node name="ActionSpacer" type="Control" parent="Menu/Layout"]
|
||||
custom_minimum_size = Vector2(0, 14)
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="NewRunButton" type="Button" parent="Menu/Layout"]
|
||||
custom_minimum_size = Vector2(0, 40)
|
||||
layout_mode = 2
|
||||
text = "NEW RUN"
|
||||
|
||||
[node name="ContinueButton" type="Button" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_left = 120.0
|
||||
offset_top = 193.0
|
||||
offset_right = 370.0
|
||||
offset_bottom = 233.0
|
||||
[node name="ContinueButton" type="Button" parent="Menu/Layout"]
|
||||
custom_minimum_size = Vector2(0, 40)
|
||||
layout_mode = 2
|
||||
text = "CONTINUE"
|
||||
|
||||
[node name="LoadSlotButton" type="Button" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_left = 120.0
|
||||
offset_top = 242.0
|
||||
offset_right = 370.0
|
||||
offset_bottom = 282.0
|
||||
[node name="LoadSlotButton" type="Button" parent="Menu/Layout"]
|
||||
custom_minimum_size = Vector2(0, 40)
|
||||
layout_mode = 2
|
||||
text = "LOAD SLOT"
|
||||
|
||||
[node name="OptionsButton" type="Button" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_left = 120.0
|
||||
offset_top = 291.0
|
||||
offset_right = 370.0
|
||||
offset_bottom = 331.0
|
||||
[node name="OptionsButton" type="Button" parent="Menu/Layout"]
|
||||
custom_minimum_size = Vector2(0, 40)
|
||||
layout_mode = 2
|
||||
text = "OPTIONS"
|
||||
|
||||
[node name="QuitButton" type="Button" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_left = 120.0
|
||||
offset_top = 340.0
|
||||
offset_right = 370.0
|
||||
offset_bottom = 380.0
|
||||
[node name="QuitButton" type="Button" parent="Menu/Layout"]
|
||||
custom_minimum_size = Vector2(0, 40)
|
||||
layout_mode = 2
|
||||
text = "QUIT"
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_left = 40.0
|
||||
offset_top = 410.0
|
||||
offset_right = 450.0
|
||||
offset_bottom = 454.0
|
||||
[node name="StatusSpacer" type="Control" parent="Menu/Layout"]
|
||||
custom_minimum_size = Vector2(0, 6)
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="Menu/Layout"]
|
||||
custom_minimum_size = Vector2(0, 44)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.82, 0.9, 1, 1)
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="CharacterCreation" parent="." instance=ExtResource("2_creation")]
|
||||
|
||||
@@ -8,17 +8,17 @@ const RunSettingsType = preload("res://scripts/domain/run/run_settings.gd")
|
||||
const DIFFICULTY_IDS: Array[StringName] = [&"touriste", &"crawler", &"veteran", &"masochiste"]
|
||||
const ARCHETYPE_IDS: Array[StringName] = [&"vanguard", &"mystic", &"scout"]
|
||||
|
||||
@onready var name_edit: LineEdit = $Panel/Fields/NameEdit
|
||||
@onready var archetype_option: OptionButton = $Panel/Fields/ArchetypeOption
|
||||
@onready var pet_check: CheckBox = $Panel/Fields/PetCheck
|
||||
@onready var seed_edit: LineEdit = $Panel/Fields/SeedEdit
|
||||
@onready var difficulty_option: OptionButton = $Panel/Fields/DifficultyOption
|
||||
@onready var permadeath_option: OptionButton = $Panel/Fields/PermadeathOption
|
||||
@onready var validation_label: Label = $Panel/ValidationLabel
|
||||
@onready var name_edit: LineEdit = $Panel/Layout/Fields/NameEdit
|
||||
@onready var archetype_option: OptionButton = $Panel/Layout/Fields/ArchetypeOption
|
||||
@onready var pet_check: CheckBox = $Panel/Layout/Fields/PetCheck
|
||||
@onready var seed_edit: LineEdit = $Panel/Layout/Fields/SeedEdit
|
||||
@onready var difficulty_option: OptionButton = $Panel/Layout/Fields/DifficultyOption
|
||||
@onready var permadeath_option: OptionButton = $Panel/Layout/Fields/PermadeathOption
|
||||
@onready var validation_label: Label = $Panel/Layout/ValidationLabel
|
||||
|
||||
func _ready() -> void:
|
||||
$Panel/StartRunButton.pressed.connect(_on_start_run_pressed)
|
||||
$Panel/CancelButton.pressed.connect(func() -> void: cancelled.emit())
|
||||
$Panel/Layout/Actions/StartRunButton.pressed.connect(_on_start_run_pressed)
|
||||
$Panel/Layout/Actions/CancelButton.pressed.connect(func() -> void: cancelled.emit())
|
||||
|
||||
func _on_start_run_pressed() -> void:
|
||||
var selected_difficulty := DIFFICULTY_IDS[difficulty_option.selected]
|
||||
|
||||
@@ -7,14 +7,14 @@ const GameScene = preload("res://scenes/Game.tscn")
|
||||
|
||||
@onready var menu: Control = $Menu
|
||||
@onready var character_creation: CharacterCreation = $CharacterCreation
|
||||
@onready var status_label: Label = $Menu/StatusLabel
|
||||
@onready var status_label: Label = $Menu/Layout/StatusLabel
|
||||
|
||||
func _ready() -> void:
|
||||
$Menu/NewRunButton.pressed.connect(_show_character_creation)
|
||||
$Menu/ContinueButton.pressed.connect(_show_unavailable.bind("Continue"))
|
||||
$Menu/LoadSlotButton.pressed.connect(_show_unavailable.bind("Load Slot"))
|
||||
$Menu/OptionsButton.pressed.connect(_show_unavailable.bind("Options"))
|
||||
$Menu/QuitButton.pressed.connect(func() -> void: get_tree().quit())
|
||||
$Menu/Layout/NewRunButton.pressed.connect(_show_character_creation)
|
||||
$Menu/Layout/ContinueButton.pressed.connect(_show_unavailable.bind("Continue"))
|
||||
$Menu/Layout/LoadSlotButton.pressed.connect(_show_unavailable.bind("Load Slot"))
|
||||
$Menu/Layout/OptionsButton.pressed.connect(_show_unavailable.bind("Options"))
|
||||
$Menu/Layout/QuitButton.pressed.connect(func() -> void: get_tree().quit())
|
||||
character_creation.run_requested.connect(_start_new_run)
|
||||
character_creation.cancelled.connect(_show_main_menu)
|
||||
_show_main_menu()
|
||||
|
||||
@@ -7,6 +7,7 @@ func before_each() -> void:
|
||||
menu = MainMenuScene.instantiate()
|
||||
add_child_autofree(menu)
|
||||
await get_tree().process_frame
|
||||
await get_tree().process_frame
|
||||
|
||||
func test_actual_menu_creation_flow_starts_game_and_emits_event() -> void:
|
||||
var started_events: Array[GameEvent] = []
|
||||
@@ -14,20 +15,21 @@ func test_actual_menu_creation_flow_starts_game_and_emits_event() -> void:
|
||||
started_events.append_array(run_state.recent_events(1))
|
||||
)
|
||||
|
||||
(menu.get_node("Menu/NewRunButton") as Button).emit_signal("pressed")
|
||||
await get_tree().process_frame
|
||||
var new_run_button := menu.get_node("Menu/Layout/NewRunButton") as Button
|
||||
await _click_button(new_run_button)
|
||||
var creation := menu.get_node("CharacterCreation") as CharacterCreation
|
||||
assert_not_null(creation)
|
||||
assert_true(creation.visible)
|
||||
|
||||
(creation.get_node("Panel/Fields/NameEdit") as LineEdit).text = "A6 Hero"
|
||||
(creation.get_node("Panel/Fields/ArchetypeOption") as OptionButton).select(1)
|
||||
(creation.get_node("Panel/Fields/PetCheck") as CheckBox).button_pressed = true
|
||||
(creation.get_node("Panel/Fields/SeedEdit") as LineEdit).text = "A6-E2E-SEED"
|
||||
(creation.get_node("Panel/Fields/DifficultyOption") as OptionButton).select(2)
|
||||
(creation.get_node("Panel/Fields/PermadeathOption") as OptionButton).select(1)
|
||||
(creation.get_node("Panel/StartRunButton") as Button).emit_signal("pressed")
|
||||
await get_tree().process_frame
|
||||
(creation.get_node("Panel/Layout/Fields/NameEdit") as LineEdit).text = "A6 Hero"
|
||||
(creation.get_node("Panel/Layout/Fields/ArchetypeOption") as OptionButton).select(1)
|
||||
(creation.get_node("Panel/Layout/Fields/PetCheck") as CheckBox).button_pressed = true
|
||||
(creation.get_node("Panel/Layout/Fields/SeedEdit") as LineEdit).text = "A6-E2E-SEED"
|
||||
(creation.get_node("Panel/Layout/Fields/DifficultyOption") as OptionButton).select(2)
|
||||
(creation.get_node("Panel/Layout/Fields/PermadeathOption") as OptionButton).select(1)
|
||||
|
||||
var start_run_button := creation.get_node("Panel/Layout/Actions/StartRunButton") as Button
|
||||
await _click_button(start_run_button)
|
||||
await get_tree().process_frame
|
||||
|
||||
var game := menu.get_node_or_null("Game") as Game
|
||||
@@ -44,3 +46,29 @@ func test_actual_menu_creation_flow_starts_game_and_emits_event() -> void:
|
||||
assert_eq(started_events.size(), 1)
|
||||
assert_eq(started_events[0].payload["seed"], "A6-E2E-SEED")
|
||||
assert_eq(started_events[0].payload["difficulty_id"], &"veteran")
|
||||
|
||||
func _click_button(button: Button) -> void:
|
||||
assert_not_null(button)
|
||||
assert_true(button.visible)
|
||||
var click_position := button.get_global_rect().get_center()
|
||||
get_tree().root.push_input(_mouse_motion_event(click_position), true)
|
||||
await get_tree().process_frame
|
||||
get_tree().root.push_input(_mouse_button_event(click_position, true), true)
|
||||
await get_tree().process_frame
|
||||
get_tree().root.push_input(_mouse_button_event(click_position, false), true)
|
||||
await get_tree().process_frame
|
||||
|
||||
func _mouse_motion_event(position: Vector2) -> InputEventMouseMotion:
|
||||
var event := InputEventMouseMotion.new()
|
||||
event.position = position
|
||||
event.global_position = position
|
||||
return event
|
||||
|
||||
func _mouse_button_event(position: Vector2, pressed: bool) -> InputEventMouseButton:
|
||||
var event := InputEventMouseButton.new()
|
||||
event.position = position
|
||||
event.global_position = position
|
||||
event.button_index = MOUSE_BUTTON_LEFT
|
||||
event.button_mask = MOUSE_BUTTON_MASK_LEFT if pressed else 0
|
||||
event.pressed = pressed
|
||||
return event
|
||||
|
||||
@@ -3,6 +3,8 @@ extends GutTest
|
||||
const GameType = preload("res://scripts/game/game.gd")
|
||||
const MapRendererType = preload("res://scripts/presentation/map_renderer.gd")
|
||||
const GameScene = preload("res://scenes/Game.tscn")
|
||||
const MainMenuScene = preload("res://scenes/menu/MainMenu.tscn")
|
||||
const CharacterCreationScene = preload("res://scenes/menu/CharacterCreation.tscn")
|
||||
|
||||
func test_reference_viewport_and_project_window_settings_are_1280_by_720() -> void:
|
||||
assert_eq(GameType.REFERENCE_VIEWPORT, Vector2i(1280, 720))
|
||||
@@ -13,6 +15,43 @@ func test_reference_viewport_and_project_window_settings_are_1280_by_720() -> vo
|
||||
assert_eq(ProjectSettings.get_setting("display/window/size/resizable"), true)
|
||||
assert_eq(ProjectSettings.get_setting("display/window/stretch/mode"), "canvas_items")
|
||||
|
||||
func test_menu_panels_have_one_layout_child_and_non_overlapping_layout_at_1280_by_720() -> void:
|
||||
var main_menu := MainMenuScene.instantiate() as MainMenu
|
||||
var creation := CharacterCreationScene.instantiate() as CharacterCreation
|
||||
add_child_autofree(main_menu)
|
||||
add_child_autofree(creation)
|
||||
await get_tree().process_frame
|
||||
await get_tree().process_frame
|
||||
|
||||
assert_eq(get_viewport().get_visible_rect().size, Vector2(1280, 720))
|
||||
_assert_panel_has_only_layout_child(main_menu.get_node("Menu") as PanelContainer)
|
||||
_assert_panel_has_only_layout_child(creation.get_node("Panel") as PanelContainer)
|
||||
_assert_layout_children_do_not_overlap(main_menu.get_node("Menu/Layout") as Control)
|
||||
_assert_layout_children_do_not_overlap(creation.get_node("Panel/Layout") as Control)
|
||||
|
||||
func _assert_panel_has_only_layout_child(panel: PanelContainer) -> void:
|
||||
assert_not_null(panel)
|
||||
assert_eq(panel.get_child_count(), 1)
|
||||
var layout := panel.get_child(0)
|
||||
assert_true(layout is Control)
|
||||
assert_true(layout is VBoxContainer)
|
||||
assert_eq(layout.name, &"Layout")
|
||||
assert_true(panel.get_global_rect().encloses((layout as Control).get_global_rect()))
|
||||
|
||||
func _assert_layout_children_do_not_overlap(layout: Control) -> void:
|
||||
var visible_children: Array[Control] = []
|
||||
for child in layout.get_children():
|
||||
if child is Control and (child as Control).visible:
|
||||
visible_children.append(child as Control)
|
||||
for index in visible_children.size():
|
||||
for other_index in range(index + 1, visible_children.size()):
|
||||
var first := visible_children[index]
|
||||
var second := visible_children[other_index]
|
||||
assert_false(
|
||||
first.get_global_rect().intersects(second.get_global_rect()),
|
||||
"%s overlaps %s" % [first.get_path(), second.get_path()]
|
||||
)
|
||||
|
||||
func test_map_renderer_returns_the_contract_cell_rectangle() -> void:
|
||||
var renderer := MapRendererType.new()
|
||||
add_child_autofree(renderer)
|
||||
|
||||
Reference in New Issue
Block a user