예제 #1
0
        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);
        }
예제 #2
0
 internal WndWindowStaticText(WndWindowDefinition wndWindow, ContentManager contentManager, WndCallbackResolver callbackResolver)
     : base(wndWindow, contentManager, callbackResolver)
 {
     if (!wndWindow.StaticTextData.Centered)
     {
         TextAlignment = TextAlignment.Leading;
     }
 }
예제 #3
0
 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);
     }
 }