当前位置: 首页>>代码示例>>C#>>正文


C# IResourceManager.GetSprite方法代码示例

本文整理汇总了C#中IResourceManager.GetSprite方法的典型用法代码示例。如果您正苦于以下问题:C# IResourceManager.GetSprite方法的具体用法?C# IResourceManager.GetSprite怎么用?C# IResourceManager.GetSprite使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IResourceManager的用法示例。


在下文中一共展示了IResourceManager.GetSprite方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Checkbox

 public Checkbox(IResourceManager resourceManager)
 {
     _resourceManager = resourceManager;
     checkbox = _resourceManager.GetSprite("checkbox0");
     checkboxCheck = _resourceManager.GetSprite("checkbox1");
     Update(0);
 }
开发者ID:MSylvia,项目名称:space-station-14,代码行数:7,代码来源:Checkbox.cs

示例2: Textbox

        public Textbox(int width, IResourceManager resourceManager)
        {
            _resourceManager = resourceManager;
            _textboxLeft = _resourceManager.GetSprite("text_left");
            _textboxMain = _resourceManager.GetSprite("text_middle");
            _textboxRight = _resourceManager.GetSprite("text_right");

            Width = width;

            Label = new TextSprite("Textbox", "", _resourceManager.GetFont("CALIBRI")) {Color =  Color.Black};

            Update(0);
        }
开发者ID:millpond,项目名称:space-station-14,代码行数:13,代码来源:Textbox.cs

示例3: Button

        public Button(string buttonText, IResourceManager resourceManager)
        {
            _resourceManager = resourceManager;
            _buttonLeft = _resourceManager.GetSprite("button_left");
            _buttonMain = _resourceManager.GetSprite("button_middle");
            _buttonRight = _resourceManager.GetSprite("button_right");

            Label = new TextSprite("ButtonLabel" + buttonText, buttonText, _resourceManager.GetFont("CALIBRI"))
                        {
                            Color = Color.Black
                        };

            Update(0);
        }
开发者ID:MSylvia,项目名称:space-station-14,代码行数:14,代码来源:Button.cs

示例4: HealthScannerWindow

        public HealthScannerWindow(Entity assignedEnt, Vector2D mousePos, UserInterfaceManager uiMgr,
                                   IResourceManager resourceManager)
        {
            _resourceManager = resourceManager;
            assigned = assignedEnt;
            _uiMgr = uiMgr;

            _overallHealth = new TextSprite("hpscan" + assignedEnt.Uid.ToString(), "",
                                            _resourceManager.GetFont("CALIBRI"));
            _overallHealth.Color = Color.ForestGreen;

            _background = _resourceManager.GetSprite("healthscan_bg");

            _head = _resourceManager.GetSprite("healthscan_head");
            _chest = _resourceManager.GetSprite("healthscan_chest");
            _arml = _resourceManager.GetSprite("healthscan_arml");
            _armr = _resourceManager.GetSprite("healthscan_armr");
            _groin = _resourceManager.GetSprite("healthscan_groin");
            _legl = _resourceManager.GetSprite("healthscan_legl");
            _legr = _resourceManager.GetSprite("healthscan_legr");

            Position = new Point((int) mousePos.X, (int) mousePos.Y);

            Setup();
            Update(0);
        }
开发者ID:Gartley,项目名称:ss13remake,代码行数:26,代码来源:HealthScannerWindow.cs

示例5: Scrollbar

        public int size = 300; //Graphical length of the bar.

        public Scrollbar(bool horizontal, IResourceManager resourceManager)
        {
            _resourceManager = resourceManager;

            Horizontal = horizontal;
            if (Horizontal) scrollbarButton = _resourceManager.GetSprite("scrollbutton_h");
            else scrollbarButton = _resourceManager.GetSprite("scrollbutton_v");

            DEBUG = new TextSprite("DEBUGSLIDER", "Position:", _resourceManager.GetFont("CALIBRI"));
            DEBUG.Color = Color.OrangeRed;
            DEBUG.ShadowColor = Color.DarkBlue;
            DEBUG.Shadowed = true;
          //  DEBUG.ShadowOffset = new Vector2(1, 1);
            Update(0);
        }
开发者ID:millpond,项目名称:space-station-14,代码行数:17,代码来源:Scrollbar.cs

示例6: Hotbar

 public Hotbar(IResourceManager resourceManager)
 {
     _resourceManager = resourceManager;
     hotbarBG = resourceManager.GetSprite("main_hotbar");
     createSlots();
     Update(0);
 }
开发者ID:Gartley,项目名称:ss13remake,代码行数:7,代码来源:Hotbar.cs

示例7: CraftSlotUi

 public CraftSlotUi(IResourceManager resourceManager, IUserInterfaceManager userInterfaceManager)
 {
     _resourceManager = resourceManager;
     _userInterfaceManager = userInterfaceManager;
     _sprite = _resourceManager.GetSprite("slot");
     _color = Color.White;
 }
开发者ID:Gartley,项目名称:ss13remake,代码行数:7,代码来源:CraftSlotUi.cs

示例8: BlueprintButton

        public BlueprintButton(string c1, string c1N, string c2, string c2N, string res, string resname,
                               IResourceManager resourceManager)
        {
            _resourceManager = resourceManager;

            Compo1 = c1;
            Compo1Name = c1N;

            Compo2 = c2;
            Compo2Name = c2N;

            Result = res;
            ResultName = resname;

            _icon = _resourceManager.GetSprite("blueprint");

            Label = new TextSprite("blueprinttext", "", _resourceManager.GetFont("CALIBRI"))
                        {
                            Color = new SFML.Graphics.Color(248, 248, 255),
                            ShadowColor = new SFML.Graphics.Color(105, 105, 105),
                            ShadowOffset = new Vector2f(1, 1),
                            Shadowed = true
                        };

            Update(0);
        }
开发者ID:MSylvia,项目名称:space-station-14,代码行数:26,代码来源:BlueprintButton.cs

示例9: HotbarSlot

 public HotbarSlot(IResourceManager resourceManager)
 {
     _resourceManager = resourceManager;
     _buttonSprite = _resourceManager.GetSprite("hotbar_slot");
     Color = Color.White;
     Update(0);
 }
开发者ID:Gartley,项目名称:ss13remake,代码行数:7,代码来源:HotbarSlot.cs

示例10: TargetingDummyElement

 public TargetingDummyElement(string spriteName, BodyPart part, IResourceManager resourceManager)
 {
     _resourceManager = resourceManager;
     BodyPart = part;
     _elementSprite = _resourceManager.GetSprite(spriteName);
     Update(0);
 }
开发者ID:Tri125,项目名称:space-station-14,代码行数:7,代码来源:TargetingDummyElement.cs

示例11: BlueprintButton

        public BlueprintButton(string c1, string c1N, string c2, string c2N, string res, string resname,
                               IResourceManager resourceManager)
        {
            _resourceManager = resourceManager;

            Compo1 = c1;
            Compo1Name = c1N;

            Compo2 = c2;
            Compo2Name = c2N;

            Result = res;
            ResultName = resname;

            _icon = _resourceManager.GetSprite("blueprint");

            Label = new TextSprite("blueprinttext", "", _resourceManager.GetFont("CALIBRI"))
                        {
                            Color = Color.GhostWhite,
                            ShadowColor = Color.DimGray,
                            ShadowOffset = new Vector2(1, 1),
                            Shadowed = true
                        };

            Update(0);
        }
开发者ID:millpond,项目名称:space-station-14,代码行数:26,代码来源:BlueprintButton.cs

示例12: InventorySlotUi

 public InventorySlotUi(Entity containingEnt, IResourceManager resourceManager)
 {
     _currentColor = Color.White;
     _resourceManager = resourceManager;
     ContainingEntity = containingEnt;
     if (ContainingEntity != null) _entitySprite = Utilities.GetIconSprite(ContainingEntity);
     _slotSprite = _resourceManager.GetSprite("slot");
 }
开发者ID:Gartley,项目名称:ss13remake,代码行数:8,代码来源:InventorySlotUi.cs

示例13: JobSelectButton

        public JobSelectButton(string text, string spriteName, string description, IResourceManager resourceManager)
        {
            _resourceManager = resourceManager;

            _buttonSprite = _resourceManager.GetSprite("job_button");
            _jobSprite = _resourceManager.GetSprite(spriteName);

            _descriptionTextSprite = new TextSprite("JobButtonDescLabel" + text, text + ":\n" + description,
                                                    _resourceManager.GetFont("CALIBRI"))
                                         {
                                             Color = Color.Black,
                                             ShadowColor = new Color(105, 105, 105),
                                             Shadowed = true,
                                             //ShadowOffset = new Vector2(1, 1)
                                         };

            Update(0);
        }
开发者ID:MSylvia,项目名称:space-station-14,代码行数:18,代码来源:JobSelectButton.cs

示例14: TestShader_Test

        public TestShader_Test()
        {
            base.InitializeCluwneLib();
            clock = new Clock();

            resources = base.GetResourceManager;
            testRenderImage = new RenderImage("TestShaders",1000,1000);
            testsprite = resources.GetSprite("ChatBubble");
        }
开发者ID:Tri125,项目名称:space-station-14,代码行数:9,代码来源:TestShader_Test.cs

示例15: FloatingDecoration

        public FloatingDecoration(IResourceManager resourceManager, string spriteName)
        {
            _resourceManager = resourceManager;
            DrawSprite = _resourceManager.GetSprite(spriteName);
//DrawSprite.Smoothing = Smoothing.Smooth;

            _uiMgr = (UserInterfaceManager) IoCManager.Resolve<IUserInterfaceManager>();

            Update(0);
        }
开发者ID:millpond,项目名称:space-station-14,代码行数:10,代码来源:FloatingDeco.cs


注:本文中的IResourceManager.GetSprite方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。