scripted_gui = {
	zri_senatus_decision_ui = {
		context_type = decision_category
		window_name = "zri_senatus_decision_ui_window"

		properties = {
			zri_senatus_icon = {
				frame = current_senatus_icon_frame
			}			
		}
		properties = {
			zri_princeps_icon = {
				frame = current_princeps_icon_frame
			}			
		}
		
		
		effects = {
			zri_perevybory_princepa_button_click = {
				country_event = { id = romanimp.77 }
			}				
		}
		
		triggers = {	
			zri_perevybory_princepa_button_click_enabled = {
				NOT = {
					has_country_flag = zri_pereizbran_princeps_flag
				}	
			}			
		}
###############################
#		ai_enabled = {
#			always = yes
#		}
#		ai_test_interval = 360
#		ai_test_variance = 1
#		ai_check = {
#			NOT = {
#				has_country_flag = zri_pereizbran_princeps_flag
#			}
#			has_completed_focus = zri_demokr_senatus
#			has_government = democratic
#		}
#		ai_test_scopes = test_self_country
#		ai_check_scope = {
#			NOT = {
#				has_country_flag = zri_pereizbran_princeps_flag
#			}
#			has_completed_focus = zri_demokr_senatus
#			has_government = democratic
#		}
#		ai_weights = {
#			zri_perevybory_princepa_button_click = {
#				ai_will_do = {
#					factor = 1
#				}
#			}
#		}
	}	
}

