示例#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);
     }
 }