7 HideSelection(
"rings_ris");
8 HideSelection(
"rings_ris_pilot");
13 super.OnWasAttached(parent, slot_id);
15 if (!ParentUsesWinchesterTypeMount())
17 HideSelection(
"rings_winchester");
18 HideSelection(
"rings_winchester_pilot");
19 ShowSelection(
"rings_ris");
20 ShowSelection(
"rings_ris_pilot");
26 super.OnWasDetached(parent, slot_id);
28 HideSelection(
"rings_ris");
29 HideSelection(
"rings_ris_pilot");
30 ShowSelection(
"rings_winchester");
31 ShowSelection(
"rings_winchester_pilot");
34 override void HideSelection(
string selection_name )
36 super.HideSelection( selection_name );
37 if (selection_name ==
"hide")
39 HideSelection(
"rings_ris_pilot");
40 HideSelection(
"rings_winchester_pilot");
44 override void ShowSelection(
string selection_name )
46 super.ShowSelection( selection_name );
47 if (selection_name ==
"hide")
49 if (!ParentUsesWinchesterTypeMount())
51 HideSelection(
"rings_winchester");
52 HideSelection(
"rings_winchester_pilot");
53 ShowSelection(
"rings_ris");
54 ShowSelection(
"rings_ris_pilot");
58 HideSelection(
"rings_ris");
59 HideSelection(
"rings_ris_pilot");
60 ShowSelection(
"rings_winchester");
61 ShowSelection(
"rings_winchester_pilot");
66 bool ParentUsesWinchesterTypeMount()
69 return m_Parent.ConfigGetBool(
"winchesterTypeOpticsMount");