scripted_gui = {
	tur_dial_scripted_gui = {
		window_name = "dial_turkey_gui"
		context_type = player_context

		visible = {
			has_country_flag = open_dial_gui
		}

		effects = {
			close_button_click = {
				clr_country_flag = open_dial_gui
			}
			refresh_button_click = { #IGNORE THIS, just for testing
				set_variable = { TUR_dial_value = random }
				multiply_variable = { TUR_dial_value = 100 }
			}
			left_button_click = { #IGNORE THIS, just for testing
				subtract_from_variable = {
					TUR_dial_support_value = 5
				}
				clamp_variable = { var = TUR_dial_support_value min = 0 max = 100 }
			}
			right_button_click = { #IGNORE THIS, just for testing
				add_to_variable = {
					TUR_dial_support_value = 5
				}
				clamp_variable = { var = TUR_dial_support_value min = 0 max = 100 }
			}
		}

		properties = {
			dial_hand = {
				frame = TUR_dial_value #This is ignored
			}
			half_dial_hand = {
				frame = TUR_dial_support_value #This is the thing you actually change!!!!
			}
			aflag_0 = {
				image = [BYZ.GetFlag] #This is one of the images
			}
			aflag_1 = {
				image = [GRE.GetFlag] #This is one of the images
			}
		}
	}
}
