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