/// <summary> /// Sets references to components that will display information about a partyMember /// </summary> public void SetExternalDisplayComponents() { eventDescription = EventManager.instance.eventDescription; actionsPanel = EventManager.instance.actionsPanel; partyPanel = EventManager.instance.partyPanel; gearPanel = EventManager.instance.gearPanel; candlesPanel = EventManager.instance.candlesPanel; statusPanel = EventManager.instance.statusPanel; skillsPanel = EventManager.instance.skillsPanel; utilityTabManager = EventManager.instance.utilityTabManager; }
public ascx_Edit_AspNet_Pages buildGui() { var topPanel = this.add_Panel(); topPanel.insert_LogViewer(); ActionsPanel = topPanel.insert_Above <Panel>(70).add_GroupBox("Actions").add_Panel(); AspNetFiles = topPanel.insert_Left <Panel>(300).add_GroupBox("ASP.NET Files") .add_TreeView() .sort(); ActionsPanel.add_Label("WebRoot", 30, 0).autoSize() .append_TextBox(this.File_Path) .width(200) .onEnter( (text) => { this.File_Path = text; this.loadFiles_FromLocalFolder(); }) .append_Label("Url").top(30).autoSize() .append_TextBox(this.Web_Address) .width(200) .onTextChange((text) => this.Web_Address = text) .append_Link("refresh IE", () => ie.open_ASync(ie.url())); Aspx_CodeViewer = topPanel.add_GroupBox("Aspx page").add_SourceCodeViewer(); CSharp_CodeViewer = Aspx_CodeViewer.parent().insert_Below().add_GroupBox("CSharp page").add_SourceCodeEditor(); this.ie = topPanel.add_IE_SideView(); ActionsPanel.add_Link("Compile project", 5, 0, () => { if (this.CSProj_File.fileExists()) { var msBuild = @"C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe"; var parameters = "\"{0}\"".format(CSProj_File); msBuild.startProcess(parameters, (log) => { if (log.isNull()) { return; } if (log.lower().contains("error ")) { log.error(); } else if (log.lower().contains("warning ")) { log.debug(); } else { log.info(); } }); } else { "CSProj_File variable is not set of file does not exist: {0}".error(CSProj_File); } }); this.ActionsPanel.add_CheckBox("Show *.cs files", 5, 200, (value) => { this.ShowFilesWithExtension_CS = value; this.loadFiles_FromLocalFolder(); }).autoSize(); this.ActionsPanel.add_CheckBox("Show *.ascx, *.asax, *.config files", 5, 320, (value) => { this.ShowFilesWithExtension_AscxAsaxConfig = value; this.loadFiles_FromLocalFolder(); }).autoSize(); var splitContainers = this.controls <SplitContainer>(true); this.ActionsPanel.add_CheckBox("show/open source code files", 5, 550, (value) => { this.OpenSourceCodeFiles = value; splitContainers[2].panel1Collapsed(value.isFalse()); }).autoSize().@check(); setPageViewers(); AspNetFiles.add_ContextMenu().add_MenuItem("refresh", () => this.loadFiles_FromLocalFolder()); return(this); }
public void Initialize(ActionData actionData, GameEffect effect, ActionsPanel actionPanel) { Initialize(actionData); this.actionPanel = actionPanel; effects.Add(effect); }
public ActivityView() { InitializeComponent(); SetupMapStyle(); EnableAnimations(); void SetupMapStyle() { ActivityMap.StyleSheet = MapStyleSheet.ParseFromJson(@" { ""version"": ""1.*"", ""settings"": { ""landColor"": ""#FF101416"", ""spaceColor"": ""#FF101416"", ""shadedReliefVisible"": false, ""atmosphereVisible"": false, ""logosVisible"": false }, ""elements"": { ""mapElement"": { ""labelVisible"": true, ""labelColor"": ""#FF3E4244"", ""labelOutlineColor"": ""#FF0B0F11"", ""strokeColor"": ""#FF0B0F11"", ""strokeWidthScale"": 1 }, ""political"": { ""borderStrokeColor"": ""#FF1E3B49"", ""borderOutlineColor"": ""#00000000"" }, ""point"": { ""iconColor"": ""#00000000"", ""fillColor"": ""#00000000"", ""strokeColor"": ""#00000000"" }, ""roadShield"": { ""scale"": 0 }, ""transportation"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF0B0F11"" }, ""road"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF0B0F11"" }, ""controlledAccessHighway"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF0B0F11"" }, ""highSpeedRamp"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF0B0F11"" }, ""highway"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF0B0F11"" }, ""majorRoad"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF060809"" }, ""arterialRoad"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF0B0F11"" }, ""street"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF0B0F11"" }, ""ramp"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF0B0F11"" }, ""unpavedStreet"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF0B0F11"" }, ""tollRoad"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF0B0F11"" }, ""railway"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF0B0F11"" }, ""trail"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF0B0F11"" }, ""waterRoute"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF182127"" }, ""water"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF182127"" }, ""river"": { ""strokeColor"": ""#00000000"", ""fillColor"": ""#FF182127"" }, ""structure"": { ""fillColor"": ""#FF0B0F11"" }, ""area"": { ""fillColor"": ""#FF0B0F11"" } } } "); } void EnableAnimations() { ActionsPanel.EnableFluidVisibilityAnimation(AnimationAxis.Y, -174.0f, -174.0f, showDuration: 400, hideDuration: 400); ActivityType.EnableFluidVisibilityAnimation(AnimationAxis.Y, 12.0f, -12.0f, showDuration: 400, hideDuration: 400, showDelay: 800); LeftBladeToggle.EnableFluidVisibilityAnimation(centerPoint: new Vector3(20.0f, 20.0f, 0.0f), showFromScale: 0.2f, hideToScale: 0.2f, showDuration: 400, hideDuration: 400); RightBladeToggle.EnableFluidVisibilityAnimation(centerPoint: new Vector3(20.0f, 20.0f, 0.0f), showFromScale: 0.2f, hideToScale: 0.2f, showDuration: 400, hideDuration: 400); LeftBladeContent.EnableFluidVisibilityAnimation(showFromScale: 0.0f, hideToScale: 0.0f, showDuration: 400, hideDuration: 400); RightBladeContent.EnableFluidVisibilityAnimation(showFromScale: 0.0f, hideToScale: 0.0f, showDuration: 400, hideDuration: 400, showDelay: 100); RightBladeToggle.EnableImplicitAnimation(VisualPropertyType.Offset, 400, 100); } }