TinyLifeWeb/docs/api/TinyLife.Uis.Notifications.yml

579 lines
17 KiB
YAML
Raw Permalink Normal View History

2021-08-04 06:51:12 +02:00
### YamlMime:ManagedReference
items:
- uid: TinyLife.Uis.Notifications
commentId: T:TinyLife.Uis.Notifications
id: Notifications
parent: TinyLife.Uis
children:
2022-05-24 13:36:05 +02:00
- TinyLife.Uis.Notifications.Add(System.String,System.String,TinyLife.Uis.NotifType)
2021-08-04 06:51:12 +02:00
- TinyLife.Uis.Notifications.Add(TinyLife.Objects.MapObject,System.String,TinyLife.Uis.NotifType)
2021-11-23 16:24:04 +01:00
- TinyLife.Uis.Notifications.MaxHistoryLength
2022-05-24 13:36:05 +02:00
- TinyLife.Uis.Notifications.RegisterIcon(System.String,MLEM.Textures.TextureRegion)
2021-08-04 06:51:12 +02:00
langs:
- csharp
- vb
name: Notifications
nameWithType: Notifications
fullName: TinyLife.Uis.Notifications
type: Class
source:
remote:
path: TinyLife/Uis/Notifications.cs
2022-05-24 13:36:05 +02:00
branch: main
2021-11-26 23:42:22 +01:00
repo: https://git.ellpeck.de/Ellpeck/TinyLife
2021-08-04 06:51:12 +02:00
id: Notifications
2022-03-09 16:13:05 +01:00
path: ../TinyLife/Uis/Notifications.cs
2022-09-17 12:33:21 +02:00
startLine: 22
2021-08-04 06:51:12 +02:00
assemblies:
- Tiny Life
namespace: TinyLife.Uis
2022-05-24 13:36:05 +02:00
summary: "\nThis class holds information about the current and past notifications that are displayed in the top center of the screen.\nTo create custom notifications, use <xref href=\"TinyLife.Uis.Notifications.Add(TinyLife.Objects.MapObject%2cSystem.String%2cTinyLife.Uis.NotifType)\" data-throw-if-not-resolved=\"false\"></xref> or <xref href=\"TinyLife.Uis.Notifications.Add(System.String%2cSystem.String%2cTinyLife.Uis.NotifType)\" data-throw-if-not-resolved=\"false\"></xref>.\n"
2021-08-04 06:51:12 +02:00
example: []
syntax:
content: public static class Notifications
content.vb: Public Module Notifications
inheritance:
- System.Object
inheritedMembers:
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object,System.Object)
- System.Object.GetHashCode
- System.Object.GetType
- System.Object.MemberwiseClone
- System.Object.ReferenceEquals(System.Object,System.Object)
- System.Object.ToString
modifiers.csharp:
- public
- static
- class
modifiers.vb:
- Public
- Module
2021-11-23 16:24:04 +01:00
- uid: TinyLife.Uis.Notifications.MaxHistoryLength
commentId: F:TinyLife.Uis.Notifications.MaxHistoryLength
id: MaxHistoryLength
parent: TinyLife.Uis.Notifications
langs:
- csharp
- vb
name: MaxHistoryLength
nameWithType: Notifications.MaxHistoryLength
fullName: TinyLife.Uis.Notifications.MaxHistoryLength
type: Field
source:
remote:
path: TinyLife/Uis/Notifications.cs
2022-05-24 13:36:05 +02:00
branch: main
2021-11-26 23:42:22 +01:00
repo: https://git.ellpeck.de/Ellpeck/TinyLife
2021-11-23 16:24:04 +01:00
id: MaxHistoryLength
2022-03-09 16:13:05 +01:00
path: ../TinyLife/Uis/Notifications.cs
2022-09-17 12:33:21 +02:00
startLine: 27
2021-11-23 16:24:04 +01:00
assemblies:
- Tiny Life
namespace: TinyLife.Uis
summary: "\nThe maximum amount of entries that can be in the notification history before the oldest entries start being deleted.\n"
example: []
syntax:
content: public const int MaxHistoryLength = 1024
return:
type: System.Int32
content.vb: Public Const MaxHistoryLength As Integer = 1024
modifiers.csharp:
- public
- const
modifiers.vb:
- Public
- Const
2021-08-04 06:51:12 +02:00
- uid: TinyLife.Uis.Notifications.Add(TinyLife.Objects.MapObject,System.String,TinyLife.Uis.NotifType)
commentId: M:TinyLife.Uis.Notifications.Add(TinyLife.Objects.MapObject,System.String,TinyLife.Uis.NotifType)
id: Add(TinyLife.Objects.MapObject,System.String,TinyLife.Uis.NotifType)
parent: TinyLife.Uis.Notifications
langs:
- csharp
- vb
name: Add(MapObject, String, NotifType)
nameWithType: Notifications.Add(MapObject, String, NotifType)
fullName: TinyLife.Uis.Notifications.Add(TinyLife.Objects.MapObject, System.String, TinyLife.Uis.NotifType)
type: Method
source:
remote:
path: TinyLife/Uis/Notifications.cs
2022-05-24 13:36:05 +02:00
branch: main
2021-11-26 23:42:22 +01:00
repo: https://git.ellpeck.de/Ellpeck/TinyLife
2021-08-04 06:51:12 +02:00
id: Add
2022-03-09 16:13:05 +01:00
path: ../TinyLife/Uis/Notifications.cs
2022-09-17 12:33:21 +02:00
startLine: 52
2021-08-04 06:51:12 +02:00
assemblies:
- Tiny Life
namespace: TinyLife.Uis
summary: "\nAdds a new notification related to the given map object.\nThe passed object is also the one that will be displayed in the notification.\n"
example: []
syntax:
content: public static void Add(MapObject obj, string content, NotifType type = NotifType.Info)
parameters:
- id: obj
type: TinyLife.Objects.MapObject
description: The map object that this notification relates to
- id: content
type: System.String
description: The content of the notification. Should be localized using <xref href="TinyLife.Localization" data-throw-if-not-resolved="false"></xref>
- id: type
type: TinyLife.Uis.NotifType
description: The type that this notification should have, which determines the color of its background
content.vb: Public Shared Sub Add(obj As MapObject, content As String, type As NotifType = NotifType.Info)
overload: TinyLife.Uis.Notifications.Add*
modifiers.csharp:
- public
- static
modifiers.vb:
- Public
- Shared
2022-05-24 13:36:05 +02:00
- uid: TinyLife.Uis.Notifications.Add(System.String,System.String,TinyLife.Uis.NotifType)
commentId: M:TinyLife.Uis.Notifications.Add(System.String,System.String,TinyLife.Uis.NotifType)
id: Add(System.String,System.String,TinyLife.Uis.NotifType)
2021-08-04 06:51:12 +02:00
parent: TinyLife.Uis.Notifications
langs:
- csharp
- vb
2022-05-24 13:36:05 +02:00
name: Add(String, String, NotifType)
nameWithType: Notifications.Add(String, String, NotifType)
fullName: TinyLife.Uis.Notifications.Add(System.String, System.String, TinyLife.Uis.NotifType)
2021-08-04 06:51:12 +02:00
type: Method
source:
remote:
path: TinyLife/Uis/Notifications.cs
2022-05-24 13:36:05 +02:00
branch: main
2021-11-26 23:42:22 +01:00
repo: https://git.ellpeck.de/Ellpeck/TinyLife
2021-08-04 06:51:12 +02:00
id: Add
2022-03-09 16:13:05 +01:00
path: ../TinyLife/Uis/Notifications.cs
2022-09-17 12:33:21 +02:00
startLine: 63
2021-08-04 06:51:12 +02:00
assemblies:
- Tiny Life
namespace: TinyLife.Uis
summary: "\nAdds a new notification related to nothing.\nThe passed icon is displayed instead of an object.\n"
example: []
syntax:
2022-05-24 13:36:05 +02:00
content: public static void Add(string icon, string content, NotifType type = NotifType.Info)
2021-08-04 06:51:12 +02:00
parameters:
- id: icon
2022-05-24 13:36:05 +02:00
type: System.String
2021-08-04 06:51:12 +02:00
description: The icon that should be displayed in the notification
- id: content
type: System.String
description: The content of the notification. Should be localized using <xref href="TinyLife.Localization" data-throw-if-not-resolved="false"></xref>
- id: type
type: TinyLife.Uis.NotifType
description: The type that this notification should have, which determines the color of its background
2022-05-24 13:36:05 +02:00
content.vb: Public Shared Sub Add(icon As String, content As String, type As NotifType = NotifType.Info)
2021-08-04 06:51:12 +02:00
overload: TinyLife.Uis.Notifications.Add*
modifiers.csharp:
- public
- static
modifiers.vb:
- Public
- Shared
2022-05-24 13:36:05 +02:00
- uid: TinyLife.Uis.Notifications.RegisterIcon(System.String,MLEM.Textures.TextureRegion)
commentId: M:TinyLife.Uis.Notifications.RegisterIcon(System.String,MLEM.Textures.TextureRegion)
id: RegisterIcon(System.String,MLEM.Textures.TextureRegion)
parent: TinyLife.Uis.Notifications
langs:
- csharp
- vb
name: RegisterIcon(String, TextureRegion)
nameWithType: Notifications.RegisterIcon(String, TextureRegion)
fullName: TinyLife.Uis.Notifications.RegisterIcon(System.String, MLEM.Textures.TextureRegion)
type: Method
source:
remote:
path: TinyLife/Uis/Notifications.cs
branch: main
repo: https://git.ellpeck.de/Ellpeck/TinyLife
id: RegisterIcon
path: ../TinyLife/Uis/Notifications.cs
2022-09-17 12:33:21 +02:00
startLine: 73
2022-05-24 13:36:05 +02:00
assemblies:
- Tiny Life
namespace: TinyLife.Uis
summary: "\nRegisters an icon that can be used as a notification icon in <xref href=\"TinyLife.Uis.Notifications.Add(System.String%2cSystem.String%2cTinyLife.Uis.NotifType)\" data-throw-if-not-resolved=\"false\"></xref>.\nIcons are registered so that notification instances remember them when the game is closed and loaded again.\n"
example: []
syntax:
content: public static void RegisterIcon(string name, TextureRegion texture)
parameters:
- id: name
type: System.String
description: The name of the icon to register.
- id: texture
type: MLEM.Textures.TextureRegion
description: The texture that the icon should display.
content.vb: Public Shared Sub RegisterIcon(name As String, texture As TextureRegion)
overload: TinyLife.Uis.Notifications.RegisterIcon*
modifiers.csharp:
- public
- static
modifiers.vb:
- Public
- Shared
2021-08-04 06:51:12 +02:00
references:
- uid: TinyLife.Uis.Notifications.Add(TinyLife.Objects.MapObject,System.String,TinyLife.Uis.NotifType)
commentId: M:TinyLife.Uis.Notifications.Add(TinyLife.Objects.MapObject,System.String,TinyLife.Uis.NotifType)
isExternal: true
2022-05-24 13:36:05 +02:00
- uid: TinyLife.Uis.Notifications.Add(System.String,System.String,TinyLife.Uis.NotifType)
commentId: M:TinyLife.Uis.Notifications.Add(System.String,System.String,TinyLife.Uis.NotifType)
2021-08-04 06:51:12 +02:00
isExternal: true
- uid: TinyLife.Uis
commentId: N:TinyLife.Uis
name: TinyLife.Uis
nameWithType: TinyLife.Uis
fullName: TinyLife.Uis
- uid: System.Object
commentId: T:System.Object
parent: System
isExternal: true
name: Object
nameWithType: Object
fullName: System.Object
- uid: System.Object.Equals(System.Object)
commentId: M:System.Object.Equals(System.Object)
parent: System.Object
isExternal: true
name: Equals(Object)
nameWithType: Object.Equals(Object)
fullName: System.Object.Equals(System.Object)
spec.csharp:
- uid: System.Object.Equals(System.Object)
name: Equals
nameWithType: Object.Equals
fullName: System.Object.Equals
isExternal: true
- name: (
nameWithType: (
fullName: (
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.Equals(System.Object)
name: Equals
nameWithType: Object.Equals
fullName: System.Object.Equals
isExternal: true
- name: (
nameWithType: (
fullName: (
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: )
nameWithType: )
fullName: )
- uid: System.Object.Equals(System.Object,System.Object)
commentId: M:System.Object.Equals(System.Object,System.Object)
parent: System.Object
isExternal: true
name: Equals(Object, Object)
nameWithType: Object.Equals(Object, Object)
fullName: System.Object.Equals(System.Object, System.Object)
spec.csharp:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
nameWithType: Object.Equals
fullName: System.Object.Equals
isExternal: true
- name: (
nameWithType: (
fullName: (
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: ', '
nameWithType: ', '
fullName: ', '
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
nameWithType: Object.Equals
fullName: System.Object.Equals
isExternal: true
- name: (
nameWithType: (
fullName: (
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: ', '
nameWithType: ', '
fullName: ', '
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: )
nameWithType: )
fullName: )
- uid: System.Object.GetHashCode
commentId: M:System.Object.GetHashCode
parent: System.Object
isExternal: true
name: GetHashCode()
nameWithType: Object.GetHashCode()
fullName: System.Object.GetHashCode()
spec.csharp:
- uid: System.Object.GetHashCode
name: GetHashCode
nameWithType: Object.GetHashCode
fullName: System.Object.GetHashCode
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.GetHashCode
name: GetHashCode
nameWithType: Object.GetHashCode
fullName: System.Object.GetHashCode
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
- uid: System.Object.GetType
commentId: M:System.Object.GetType
parent: System.Object
isExternal: true
name: GetType()
nameWithType: Object.GetType()
fullName: System.Object.GetType()
spec.csharp:
- uid: System.Object.GetType
name: GetType
nameWithType: Object.GetType
fullName: System.Object.GetType
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.GetType
name: GetType
nameWithType: Object.GetType
fullName: System.Object.GetType
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
- uid: System.Object.MemberwiseClone
commentId: M:System.Object.MemberwiseClone
parent: System.Object
isExternal: true
name: MemberwiseClone()
nameWithType: Object.MemberwiseClone()
fullName: System.Object.MemberwiseClone()
spec.csharp:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
nameWithType: Object.MemberwiseClone
fullName: System.Object.MemberwiseClone
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
nameWithType: Object.MemberwiseClone
fullName: System.Object.MemberwiseClone
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
commentId: M:System.Object.ReferenceEquals(System.Object,System.Object)
parent: System.Object
isExternal: true
name: ReferenceEquals(Object, Object)
nameWithType: Object.ReferenceEquals(Object, Object)
fullName: System.Object.ReferenceEquals(System.Object, System.Object)
spec.csharp:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
nameWithType: Object.ReferenceEquals
fullName: System.Object.ReferenceEquals
isExternal: true
- name: (
nameWithType: (
fullName: (
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: ', '
nameWithType: ', '
fullName: ', '
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
nameWithType: Object.ReferenceEquals
fullName: System.Object.ReferenceEquals
isExternal: true
- name: (
nameWithType: (
fullName: (
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: ', '
nameWithType: ', '
fullName: ', '
- uid: System.Object
name: Object
nameWithType: Object
fullName: System.Object
isExternal: true
- name: )
nameWithType: )
fullName: )
- uid: System.Object.ToString
commentId: M:System.Object.ToString
parent: System.Object
isExternal: true
name: ToString()
nameWithType: Object.ToString()
fullName: System.Object.ToString()
spec.csharp:
- uid: System.Object.ToString
name: ToString
nameWithType: Object.ToString
fullName: System.Object.ToString
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
spec.vb:
- uid: System.Object.ToString
name: ToString
nameWithType: Object.ToString
fullName: System.Object.ToString
isExternal: true
- name: (
nameWithType: (
fullName: (
- name: )
nameWithType: )
fullName: )
- uid: System
commentId: N:System
isExternal: true
name: System
nameWithType: System
fullName: System
2021-11-23 16:24:04 +01:00
- uid: System.Int32
commentId: T:System.Int32
parent: System
isExternal: true
name: Int32
nameWithType: Int32
fullName: System.Int32
2021-08-04 06:51:12 +02:00
- uid: TinyLife.Localization
commentId: T:TinyLife.Localization
name: Localization
nameWithType: Localization
fullName: TinyLife.Localization
- uid: TinyLife.Uis.Notifications.Add*
commentId: Overload:TinyLife.Uis.Notifications.Add
name: Add
nameWithType: Notifications.Add
fullName: TinyLife.Uis.Notifications.Add
- uid: TinyLife.Objects.MapObject
commentId: T:TinyLife.Objects.MapObject
parent: TinyLife.Objects
name: MapObject
nameWithType: MapObject
fullName: TinyLife.Objects.MapObject
- uid: System.String
commentId: T:System.String
parent: System
isExternal: true
name: String
nameWithType: String
fullName: System.String
- uid: TinyLife.Uis.NotifType
commentId: T:TinyLife.Uis.NotifType
parent: TinyLife.Uis
name: NotifType
nameWithType: NotifType
fullName: TinyLife.Uis.NotifType
- uid: TinyLife.Objects
commentId: N:TinyLife.Objects
name: TinyLife.Objects
nameWithType: TinyLife.Objects
fullName: TinyLife.Objects
2022-05-24 13:36:05 +02:00
- uid: TinyLife.Uis.Notifications.RegisterIcon*
commentId: Overload:TinyLife.Uis.Notifications.RegisterIcon
name: RegisterIcon
nameWithType: Notifications.RegisterIcon
fullName: TinyLife.Uis.Notifications.RegisterIcon
2021-08-04 06:51:12 +02:00
- uid: MLEM.Textures.TextureRegion
commentId: T:MLEM.Textures.TextureRegion
parent: MLEM.Textures
isExternal: true
name: TextureRegion
nameWithType: TextureRegion
fullName: MLEM.Textures.TextureRegion
- uid: MLEM.Textures
commentId: N:MLEM.Textures
isExternal: true
name: MLEM.Textures
nameWithType: MLEM.Textures
fullName: MLEM.Textures