public new static Displayable ot_dynamic_cast(Storable pObject) { IntPtr cPtr = otapiPINVOKE.Displayable_ot_dynamic_cast(Storable.getCPtr(pObject)); Displayable ret = (cPtr == IntPtr.Zero) ? null : new Displayable(cPtr, false); return(ret); }
protected void AddDisplayable() { if (Site != null && Site.DesignMode) { return; } if (Displayable != null) { displayer = Displayable.AddTo(CurrentItem, PropertyName, this); if (displayer != null) { if (HeaderTemplate != null) { Control header = new SimpleTemplateContainer(); Controls.AddAt(0, header); HeaderTemplate.InstantiateIn(header); } if (FooterTemplate != null) { Control footer = new SimpleTemplateContainer(); Controls.Add(footer); FooterTemplate.InstantiateIn(footer); } } } }
public void ShouldYieldEvaluationResultsInCircle() { //GIVEN Displayable d1 = Substitute.For <Displayable>(); Displayable d2 = Substitute.For <Displayable>(); Displayable d3 = Substitute.For <Displayable>(); var displayable = new CircularDisplayable(d1, d2, d3); var input = Any.Array <char>(); var d1Result = Any.String(); var d2Result = Any.String(); var d3Result = Any.String(); d1.Evaluate(input).Returns(d1Result); d2.Evaluate(input).Returns(d2Result); d3.Evaluate(input).Returns(d3Result); //WHEN var result1 = displayable.Evaluate(input); var result2 = displayable.Evaluate(input); var result3 = displayable.Evaluate(input); var result4 = displayable.Evaluate(input); //THEN XAssert.Equal(d1Result, result1); XAssert.Equal(d2Result, result2); XAssert.Equal(d3Result, result3); XAssert.Equal(d1Result, result4); }
internal Task Handle <T>(BaseDisplayWidget displayWidget) where T : Displayable { Displayable state = _displayableDictionary[typeof(T)]; state.SetEnabled(displayWidget.Display); return(Task.CompletedTask); }
public void UnsetActive() { if (CurrentActive) { CurrentActive.AfterClick(); } CurrentActive = null; }
internal Task Handle <T>(BaseDisplayDetails displayDetails) where T : Displayable { Displayable state = _displayableDictionary[typeof(T)]; state.SetEnabled(true); state.SetShowDetails(displayDetails.Details); return(Task.CompletedTask); }
protected void Add(string key, T item) { Displayable.Add(key, item); if (Key == null) { Key = key; } }
private static Displayable MapToText(ElasticTitleIndex elasticProduct, Displayable displayable) { var text = new Text(); Book book = (Book)text; displayable = MapBookToDisplayable(elasticProduct, book); return(displayable); }
private static Displayable MapToEBook(ElasticTitleIndex elasticProduct, Displayable displayable) { var eBookItem = new eBook { HasAttachment = elasticProduct.HasAttachment }; Book book = (Book)eBookItem; displayable = MapBookToDisplayable(elasticProduct, book); return(displayable); }
private static Displayable MapToLargePrint(ElasticTitleIndex elasticProduct, Displayable displayable) { var largePrint = new LargePrint { MediaCount = elasticProduct.MediaCount }; Book book = (Book)largePrint; displayable = MapBookToDisplayable(elasticProduct, book); return(displayable); }
private static Displayable MapToPlayAway(ElasticTitleIndex elasticProduct, Displayable displayable) { var playaway = new Playaway { Narrators = elasticProduct.Narrator }; Book book = (Book)playaway; displayable = MapBookToDisplayable(elasticProduct, book); return(displayable); }
private void display(Displayable displayable) { displayed = Instantiate(displayable.getToDisplay()); // TODO play sound FindObjectOfType <PlaySound>().playPhoneCall(); FindObjectOfType <PlaySound>().lastMusic(); Invoke(nameof(destroyDisplay), Constants.TIME_PHONE_CALL); Invoke(nameof(endGame), Constants.TIME_PHONE_CALL); }
static Displayable[] deserialise_displayables(FReaction reaction) { var l = reaction.DisplayablesLength; var configurations = new Displayable[l]; for (var i = 0; i < l; i++) { configurations[i] = deserialise_displayable(reaction.Displayables(i)); } return(configurations); }
public virtual void ShouldFindCodeByCodeAndTypeIgnoringCase() { BasicConfidentialityKind code = fixture.Lookup <BasicConfidentialityKind>(TYPE, "n", true); Assert.IsNotNull(code); Assert.AreEqual("N", code.CodeValue); Assert.AreEqual("2.16.840.1.113883.5.25", code.CodeSystem); Assert.AreEqual("ConfidentialityCode", code.CodeSystemName); Assert.IsTrue(typeof(Displayable).IsAssignableFrom(code.GetType())); Displayable displayable = (Displayable)code; Assert.AreEqual("normal", displayable.GetDisplayText("en")); }
private static Displayable MapToMp3(ElasticTitleIndex elasticProduct, Displayable displayable) { var mp3 = new Mp3 { Narrators = elasticProduct.Narrator, StockLevel = elasticProduct.StockLevel, MediaCount = elasticProduct.MediaCount, }; Book book = (Book)mp3; displayable = MapBookToDisplayable(elasticProduct, book); return(displayable); }
//private static string GenerateMarcUrl(string sourceItemId) //{ // return ApiConfig.MarcUrl + sourceItemId; //} private static Displayable MapToEAudio(ElasticTitleIndex elasticProduct, Displayable displayable) { var eAudioItem = new eAudio { Narrators = elasticProduct.Narrator, Duration = Convert.ToDecimal(elasticProduct.Duration), PreviewFile = elasticProduct.PreviewFile, RecordingType = elasticProduct.RecordingType, }; Book book = (Book)eAudioItem; displayable = MapBookToDisplayable(elasticProduct, book); return(displayable); }
private static Displayable MapToDvd(ElasticTitleIndex elasticProduct, Displayable displayable) { var dvdItem = new Dvd { StockLevel = elasticProduct.StockLevel, MediaCount = elasticProduct.MediaCount, Narrators = elasticProduct.Narrator, RecordingType = elasticProduct.RecordingType, }; Book book = (Book)dvdItem; displayable = MapBookToDisplayable(elasticProduct, book); return(displayable); }
public static Displayable MapToDisplayable(this ElasticTitleIndex elasticProduct) { var item = new Displayable(); ItemTypeOption option; //remove spaces in text var parsedMediaType = elasticProduct.MediaType.Replace(" ", "").ToLower(); if (Enum.TryParse(parsedMediaType, true, out option)) { item = ItemTypeDictionary[option].Invoke(elasticProduct, item); } return(item); }
public void Show(Displayable displayable) { // if tag is not defined, use key as tag if (string.IsNullOrEmpty(displayable.tag)) { AddImage(displayable.key, displayable.sprite); return; } if (images.ContainsKey(displayable.tag)) { ReplaceImage(displayable.tag, displayable.sprite); } else { AddImage(displayable.tag, displayable.sprite); } }
// Start is called before the first frame update void Start() { var kiririnDisplayable = new Displayable(); kiririnDisplayable.canvasSize = new Vector2(603, 1024); kiririnDisplayable.tag = "Idle"; kiririnDisplayable.name = "Kirino"; kiririnDisplayable.spriteMappers.Add(new SpriteMapper { pos = Vector2.zero, size = new Vector2(603, 1024), sprite = kirinoSprite }); commandStack.Add(new VNSwitch("intro")); commandStack.Add(new VNSay("Kriring", "SwitchDemoDone")); commandStack.Add(new VNSay("Kriring", "That's All. :)")); commandStack.Add(new VNLoadScene("Demo")); interator = commandStack.GetEnumerator(); }
public void Show(Displayable displayable) { if (string.IsNullOrEmpty(displayable.tag)) { currentDisplayables.Add(displayable.key, displayable); AddImage(displayable.key, displayable.sprite); } else { // there is already image which have same tag if (currentDisplayables.ContainsKey(displayable.tag)) { currentDisplayables[displayable.tag] = displayable; ReplaceImage(displayable.tag, displayable.sprite); } else { AddImage(displayable.tag, displayable.sprite); } } }
// Start is called before the first frame update void Start() { var kiririnDisplayable = new Displayable(); kiririnDisplayable.canvasSize = new Vector2(603, 1024); kiririnDisplayable.tag = "Idle"; kiririnDisplayable.name = "Kirino"; kiririnDisplayable.spriteMappers.Add(new SpriteMapper { pos = Vector2.zero, size = new Vector2(603, 1024), sprite = kirinoSprite }); commandStack.Add(new VNSay("Halooooooo")); commandStack.Add(new VNBackground(demoBackgroundSprites[0])); commandStack.Add(new VNSay("Kriring", "Hi!")); commandStack.Add(new VNShow(kiririnDisplayable)); commandStack.Add(new VNSay("Kriring", "THis is Demo of Kirino Engine!")); commandStack.Add(new VNSwitch("intro", true)); commandStack.Add(new VNSwitch("SwitchOffTest", true)); commandStack.Add(new VNSay("Kriring", "Kirino Engine provide many Core Manager")); commandStack.Add(new VNSay("Kriring", "Which you can control by stacking VNCommand or Manually calling it's own method within Cores")); commandStack.Add(new VNSwitch("SwitchOffTest", false)); commandStack.Add(new VNSwitchGoto("SwitchOffTest", "GOTOAnoterScene")); // when Switch Stats off commandStack.Add(new VNBackground(demoBackgroundSprites[1])); commandStack.Add(new VNSay("Kriring", "Please Check demo script")); commandStack.Add(new VNSay("Kriring", "Kirino Engine only provides functions -not script functions to call kirino function")); commandStack.Add(new VNSay("Kriring", "that means you have to make your own parser to implement 'delayed call'")); commandStack.Add(new VNSwitchGoto("intro", "GOTOAnoterScene")); // When <intro> switch on Goto <GOTOAnoterScene> interator = commandStack.GetEnumerator(); }
public string getInputString(string title, int maxSize) { this.m_gettingInput = true; TextBox textBox = new TextBox(title, (string)null, maxSize, 0); Displayable current = this.m_display.getCurrent(); textBox.show(this.m_display); JavaLibGame.GraphicsDeviceManager.SupportedOrientations = DisplayOrientation.LandscapeLeft; JavaLibGame.GraphicsDeviceManager.ApplyChanges(); string defaultText = ""; if (XNAConnect.getGamer() != null) { defaultText = XNAConnect.getGamer().DisplayName; } //IAsyncResult result = Guide.BeginShowKeyboardInput(PlayerIndex.One, this.m_engine.getTextManager().getString(1823), this.m_engine.getTextManager().getString(1824), defaultText, (AsyncCallback) null, (object) null); //while (!result.IsCompleted) //JThread.sleep(500); string text = /* Guide.EndShowKeyboardInput(result) */ string.IsNullOrWhiteSpace(defaultText) ? "C**t" : defaultText; JavaLibGame.GraphicsDeviceManager.SupportedOrientations = DisplayOrientation.Portrait; JavaLibGame.GraphicsDeviceManager.ApplyChanges(); textBox.setString(text); if (!this.m_beingDestroyed) { this.m_display.setCurrent(current); } else { this.m_display.setCurrent((Displayable)null); } string str = textBox.getString(); this.m_gettingInput = false; return(str); }
public void Add(Displayable d) { displayables.Add(d); }
public SwitchableSegment(char onTrigger, string onValue, Displayable fallbackDisplayable) { _onTrigger = onTrigger; _onValue = onValue; _fallbackDisplayable = fallbackDisplayable; }
internal static HandleRef getCPtr(Displayable obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
public void SetActive(Displayable obj) { CurrentActive = obj; ShowSidePanel(obj); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Displayable obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; }
public void ShowSidePanel(Displayable obj) { SidePanelUI.SetActive(true); SidePanelController.Bind(obj); }
public ScoreManager(ScoreDisplayer scoreDisplayer) { this.displayer = scoreDisplayer; }
private static Row Row(Displayable a1, Displayable a2, Displayable a3) { return(new Row(a1, a2, a3)); }
// Token: 0x0600006C RID: 108 RVA: 0x00003D20 File Offset: 0x00001F20 public HeightContainer(Displayable child, float height) : base(child, -1f, height) { }
internal static HandleRef getCPtr(Displayable obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }