internal WndTopLevelWindow(WndFile wndFile, WndWindow root, WndCallbackResolver callbackResolver) { Root = root; LayoutInit = callbackResolver.GetGuiWindowCallback(wndFile.LayoutBlock.LayoutInit); LayoutUpdate = callbackResolver.GetGuiWindowCallback(wndFile.LayoutBlock.LayoutUpdate); LayoutShutdown = callbackResolver.GetGuiWindowCallback(wndFile.LayoutBlock.LayoutShutdown); }
internal WndWindowStaticText(WndWindowDefinition wndWindow, ContentManager contentManager, WndCallbackResolver callbackResolver) : base(wndWindow, contentManager, callbackResolver) { if (!wndWindow.StaticTextData.Centered) { TextAlignment = TextAlignment.Leading; } }
internal WndWindowGenericWindow(WndWindowDefinition wndWindow, ContentManager contentManager, WndCallbackResolver callbackResolver) : base(wndWindow, contentManager, callbackResolver) { if (wndWindow.Status.HasFlag(WndWindowStatusFlags.Image)) { _imageTexture = contentManager.WndImageTextureCache.GetNormalTexture( wndWindow, wndWindow.EnabledDrawData, 0); } }