GUI2K4.StreamPlayer
- Extends
- FloatingWindow
Core.Object
|
+-- XInterface.GUI
|
+-- XInterface.GUIComponent
|
+-- XInterface.GUIMultiComponent
|
+-- XInterface.GUIPage
|
+-- XInterface.UT2K4GUIPage
|
+-- GUI2K4.PopupPageBase
|
+-- GUI2K4.FloatingWindow
|
+-- GUI2K4.StreamPlayer
Inherited Variables from GUI2K4.FloatingWindow |
BLSizing, bMoveAllowed, bMoving, bResizeHeightAllowed, bResizeWidthAllowed, bResizing, BRSizing, BtSizing, b_ExitButton, DefaultHeight, DefaultLeft, DefaultTop, DefaultWidth, HeaderMouseCursorIndex, LSizing, MaxPageHeight, MaxPageWidth, MinPageHeight, MinPageWidth, RSizing, TLSizing, TRSizing, TSizing, t_WindowTitle, WindowName |
Enumerations Summary |
epbWinMode MODE_Compact,
MODE_PlayList,
MODE_Manager,
|
Functions Summary |
| | ActivePlaylistChanged (StreamPlaylist NewList)
|
| bool | AllListsReceiveDrop (GUIComponent Sender)
|
| | Closed (GUIComponent Sender, bool bCancelled)
|
| | Constrict ()
|
| | CurrentListClear ()
|
| | CurrentListRemove ()
|
| | Expand ()
|
| bool | FloatingPreDraw (Canvas C)
|
| int | GetPlaylistManagerIndex (int ListIndex)
|
| | HandleAdjustVolume (float NewVolume)
|
| | HandlePlaylistChange ()
|
| | HandleStreamChange (string NewStreamFileName)
|
| | HandleStreamStop ()
|
| | HideAll ()
|
| | HideManagement ()
|
| | HidePlayList ()
|
| | InitComponent (GUIController MyController, GUIComponent MyOwner)
|
| | InternalOnChange (GUIComponent C)
|
| bool | InternalOnClick (GUIComponent C)
|
| | LoadCurrentPlaylist ()
|
| | ManageDragOver (GUIComponent Sender)
|
| | MoveButton (GUIButton B, out float L, float T, float W, float H, float S)
|
| | NewPlaylist ()
|
| | NewPlaylistClosed (bool bCancelled)
|
| | NextTrack ()
|
| | Opened (GUIComponent Sender)
|
| | PauseCurrent ()
|
| | Play ()
|
| | PlayerMenuClick (GUIContextMenu Menu, int Index)
|
| bool | PlaylistDblClick (GUIComponent C)
|
| | PlaylistDragEnded (GUIComponent Accepting, bool bAccepted)
|
| | PlaylistMenuClick (GUIContextMenu Menu, int Index)
|
| bool | PlaylistReceiveDrop (GUIComponent Sender)
|
| | PrevTrack ()
|
| | ReadStream (Stream StreamObj)
|
| | ReadStreamAt (int Index)
|
| | ReadTagInfo (Stream StreamObj)
|
| | RefreshCurrentPlaylist ()
|
| | RefreshPlaybackOptions ()
|
| | RefreshPlaylistSelections ()
|
| | RemovePlayList ()
|
| | RenameClosed (bool bCancelled)
|
| | RenamePlayList ()
|
| | ResetSongCounter (optional bool bNoRestart)
|
| | ResizedBoth ()
|
| | ResizedHeight ()
|
| | ResolutionChanged (int ResX, int ResY)
|
| | SaveCurrentPosition ()
|
| | SetBottomButtons (Canvas C, float Left, float Top, float Width, float Height)
|
| bool | SetHandler ()
|
| bool | SetPlaylistManager ()
|
| | SetVisibility (bool bIsVisible)
|
| | ShowManagement ()
|
| | ShowPlayList ()
|
| bool | SliderPreDrawCaption (out float X, out float Y, out float XL, out float YL, out ETextAlign Justification)
|
| | SongMenuClick (GUIContextMenu Menu, int Index)
|
| | StopCurrent ()
|
| | Timer ()
|
| | ToggleManagement ()
|
| | TogglePlaylist ()
|
| | UpdatePlayButton ()
|
| | UpdateSongTimeDisplay ()
|
Inherited Functions from GUI2K4.FloatingWindow |
AddSystemMenu, AlignFrame, CheckBounds, FloatingHover, FloatingMousePressed, FloatingMouseRelease, FloatingPreDraw, FloatingRendered, HoveringBottomBorder, HoveringBottomLeft, HoveringLeftBorder, HoveringRightBorder, HoveringTopBorder, HoveringTopLeft, InitComponent, InternalOnCreateComponent, ResizeAllowed, ResizedBoth, ResizedHeight, ResizedWidth, ResolutionChanged, SaveCurrentPosition, SetDefaultPosition, SetFocus, SetMouseCursorIndex, SetPanelPosition, SystemMenuPreDraw, XButtonClicked |
StreamPlayer
CollapseManagementHint Source code
enum epbWinMode
{
MODE_Compact,
MODE_PlayList,
MODE_Manager,
};
function Constrict ( )
function CurrentListClear ( )
function CurrentListRemove ( )
function Expand ( )
function bool FloatingPreDraw (
Canvas C )
GetPlaylistManagerIndex Source code
function int GetPlaylistManagerIndex ( int ListIndex )
function HandleAdjustVolume ( float NewVolume )
function HandlePlaylistChange ( )
function HandleStreamChange ( string NewStreamFileName )
function HandleStreamStop ( )
function HideAll ( )
function HideManagement ( )
function HidePlayList ( )
function LoadCurrentPlaylist ( )
function MoveButton (
GUIButton B,
out float L,
float T,
float W,
float H,
float S )
function NewPlaylist ( )
function NewPlaylistClosed ( bool bCancelled )
function NextTrack ( )
function PauseCurrent ( )
function Play ( )
function PlaylistDragEnded (
GUIComponent Accepting,
bool bAccepted )
function PrevTrack ( )
function ReadStream (
Stream StreamObj )
function ReadStreamAt ( int Index )
function ReadTagInfo (
Stream StreamObj )
RefreshCurrentPlaylist Source code
function RefreshCurrentPlaylist ( )
RefreshPlaybackOptions Source code
function RefreshPlaybackOptions ( )
RefreshPlaylistSelections Source code
function RefreshPlaylistSelections ( )
function RemovePlayList ( )
function RenameClosed ( bool bCancelled )
function RenamePlayList ( )
function ResetSongCounter ( optional bool bNoRestart )
function ResizedBoth ( )
function ResizedHeight ( )
function ResolutionChanged ( int ResX, int ResY )
function SaveCurrentPosition ( )
function SetBottomButtons (
Canvas C,
float Left,
float Top,
float Width,
float Height )
function bool SetHandler ( )
function bool SetPlaylistManager ( )
event SetVisibility ( bool bIsVisible )
function ShowManagement ( )
function ShowPlayList ( )
function bool SliderPreDrawCaption (
out float X,
out float Y,
out float XL,
out float YL,
out ETextAlign Justification )
function StopCurrent ( )
event Timer ( )
function ToggleManagement ( )
function TogglePlaylist ( )
function UpdatePlayButton ( )
protected function UpdateSongTimeDisplay ( )
defaultproperties
{
Begin Object Class=GUIImage Name=Img1
Image=Texture'2K4Menus.NewControls.Display99'
ImageStyle=ISTY_Stretched
WinTop=0.200000
WinLeft=0.200000
WinWidth=0.200000
WinHeight=0.200000
End Object
Bk1=GUIImage'GUI2K4.StreamPlayer.Img1'
Begin Object Class=GUIImage Name=img2
Image=Texture'2K4Menus.NewControls.NewSliderBar'
ImageStyle=ISTY_Scaled
WinTop=0.200000
WinLeft=0.200000
WinWidth=0.200000
WinHeight=0.200000
End Object
bk2=GUIImage'GUI2K4.StreamPlayer.img2'
Begin Object Class=AltSectionBackground Name=sbPlayList
bFillClient=True
Caption="Current Playlist"
LeftPadding=0.000000
RightPadding=0.000000
WinTop=0.200000
WinLeft=0.200000
WinWidth=0.200000
WinHeight=0.200000
bVisible=False
OnPreDraw=sbPlayList.InternalPreDraw
End Object
sb_PlayList=AltSectionBackground'GUI2K4.StreamPlayer.sbPlayList'
Begin Object Class=AltSectionBackground Name=sbManagement
bFillClient=True
Caption="Play List Manager"
LeftPadding=0.000000
RightPadding=0.000000
WinTop=0.200000
WinLeft=0.200000
WinWidth=0.200000
WinHeight=0.200000
bVisible=False
OnPreDraw=sbManagement.InternalPreDraw
End Object
sb_Management=AltSectionBackground'GUI2K4.StreamPlayer.sbManagement'
Begin Object Class=GUIScrollTextBox Name=SongInfoBox
bNoTeletype=True
OnCreateComponent=SongInfoBox.InternalOnCreateComponent
WinWidth=0.200000
WinHeight=0.200000
bTabStop=False
bAcceptsInput=False
bNeverFocus=True
End Object
lb_SongInfo=GUIScrollTextBox'GUI2K4.StreamPlayer.SongInfoBox'
Begin Object Class=GUILabel Name=SongTime
Caption="0:00"
TextAlign=TXTA_Center
VertAlign=TXTA_Center
FontScale=FNS_Large
StyleName="TextLabel"
WinTop=-0.200000
WinLeft=0.200000
WinWidth=0.241172
WinHeight=0.550191
End Object
l_Time=GUILabel'GUI2K4.StreamPlayer.SongTime'
Begin Object Class=GUIListBox Name=PlaylistListBox
bVisibleWhenEmpty=True
OnCreateComponent=PlaylistListBox.InternalOnCreateComponent
Hint="Current Playlist"
WinTop=0.300000
WinLeft=0.010859
WinWidth=0.977425
WinHeight=0.588941
RenderWeight=0.503000
TabOrder=6
bVisible=False
End Object
lb_Playlist=GUIListBox'GUI2K4.StreamPlayer.PlaylistListBox'
Begin Object Class=GUIListBox Name=SelectPlaylistListBox
bVisibleWhenEmpty=True
OnCreateComponent=SelectPlaylistListBox.InternalOnCreateComponent
Hint="Select A Playlist"
WinTop=0.235000
WinLeft=0.010859
WinWidth=0.977425
WinHeight=0.717500
TabOrder=1
bBoundToParent=True
bVisible=False
End Object
lb_AllPlaylists=GUIListBox'GUI2K4.StreamPlayer.SelectPlaylistListBox'
Begin Object Class=GUIButton Name=bBotA
Caption="Add"
StyleName="FooterButton"
Tag=1
bVisible=False
OnClick=StreamPlayer.InternalOnClick
OnKeyEvent=bBotA.InternalOnKeyEvent
End Object
b_BotA=GUIButton'GUI2K4.StreamPlayer.bBotA'
Begin Object Class=GUIButton Name=bBotB
Caption="Remove"
StyleName="FooterButton"
Tag=1
bVisible=False
OnClick=StreamPlayer.InternalOnClick
OnKeyEvent=bBotB.InternalOnKeyEvent
End Object
b_BotB=GUIButton'GUI2K4.StreamPlayer.bBotB'
Begin Object Class=GUIButton Name=bBotC
Caption="Clear"
StyleName="FooterButton"
Tag=1
bVisible=False
OnClick=StreamPlayer.InternalOnClick
OnKeyEvent=bBotC.InternalOnKeyEvent
End Object
b_BotC=GUIButton'GUI2K4.StreamPlayer.bBotC'
Begin Object Class=GUISlider Name=StreamVolume
MaxValue=1.000000
Hint="Volume"
WinWidth=0.544922
WinHeight=1.000000
TabOrder=0
OnClick=StreamVolume.InternalOnClick
OnMousePressed=StreamVolume.InternalOnMousePressed
OnMouseRelease=StreamVolume.InternalOnMouseRelease
OnChange=StreamPlayer.InternalOnChange
OnKeyEvent=StreamVolume.InternalOnKeyEvent
OnCapturedMouseMove=StreamVolume.InternalCapturedMouseMove
End Object
sl_Volume=GUISlider'GUI2K4.StreamPlayer.StreamVolume'
Begin Object Class=GUIGFXButton Name=PlayButton
Graphic=Texture'2K4Menus.MP3.Play'
Position=ICP_Scaled
StyleName="TextLabel"
WinLeft=0.717110
WinWidth=0.040000
TabOrder=4
bTabStop=True
OnClick=StreamPlayer.InternalOnClick
OnKeyEvent=PlayButton.InternalOnKeyEvent
End Object
b_Play=GUIGFXButton'GUI2K4.StreamPlayer.PlayButton'
Begin Object Class=GUIGFXButton Name=StopButton
Graphic=Texture'2K4Menus.MP3.Stop'
Position=ICP_Scaled
StyleName="TextLabel"
Hint="Stop"
WinLeft=0.605859
WinWidth=0.040000
TabOrder=2
bTabStop=True
OnClick=StreamPlayer.InternalOnClick
OnKeyEvent=StopButton.InternalOnKeyEvent
End Object
b_Stop=GUIGFXButton'GUI2K4.StreamPlayer.StopButton'
Begin Object Class=GUIGFXButton Name=NextTrackButton
Graphic=Texture'2K4Menus.MP3.NextTrack'
Position=ICP_Scaled
StyleName="TextLabel"
Hint="Next"
WinLeft=0.660860
WinWidth=0.040000
TabOrder=3
bTabStop=True
OnClick=StreamPlayer.InternalOnClick
OnKeyEvent=NextTrackButton.InternalOnKeyEvent
End Object
b_NextTrack=GUIGFXButton'GUI2K4.StreamPlayer.NextTrackButton'
Begin Object Class=GUIGFXButton Name=PrevTrackButton
Graphic=Texture'2K4Menus.MP3.PreviousTrack'
Position=ICP_Scaled
StyleName="TextLabel"
Hint="Previous"
WinLeft=0.542109
WinWidth=0.040000
TabOrder=1
bTabStop=True
OnClick=StreamPlayer.InternalOnClick
OnKeyEvent=PrevTrackButton.InternalOnKeyEvent
End Object
b_PrevTrack=GUIGFXButton'GUI2K4.StreamPlayer.PrevTrackButton'
Begin Object Class=GUIGFXButton Name=ShowPlaylistButton
Graphic=Texture'2K4Menus.MP3.ViewPlaylist'
StyleName="RoundScaledButton"
WinLeft=0.825470
WinWidth=0.052422
WinHeight=0.925000
TabOrder=5
bTabStop=True
OnClick=StreamPlayer.InternalOnClick
OnKeyEvent=ShowPlaylistButton.InternalOnKeyEvent
OnDragOver=StreamPlayer.ManageDragOver
End Object
b_Playlist=GUIGFXButton'GUI2K4.StreamPlayer.ShowPlaylistButton'
Begin Object Class=GUIGFXButton Name=ManagePlaylistsButton
Graphic=Texture'2K4Menus.MP3.Add'
StyleName="RoundScaledButton"
Hint="Manage Playlists"
WinLeft=0.883360
WinWidth=0.052422
WinHeight=0.925000
TabOrder=6
bTabStop=True
OnClick=StreamPlayer.InternalOnClick
OnKeyEvent=ManagePlaylistsButton.InternalOnKeyEvent
OnDragOver=StreamPlayer.ManageDragOver
End Object
b_Management=GUIGFXButton'GUI2K4.StreamPlayer.ManagePlaylistsButton'
Begin Object Class=GUICheckBoxButton Name=ShuffleCheck
CheckedOverlay(0)=Texture'2K4Menus.MP3.ShuffleOnceWatched'
CheckedOverlay(1)=Texture'2K4Menus.MP3.ShuffleOnceWatched'
CheckedOverlay(2)=Texture'2K4Menus.MP3.ShuffleOnceWatched'
CheckedOverlay(3)=Texture'2K4Menus.MP3.ShuffleOnceWatched'
CheckedOverlay(4)=Texture'2K4Menus.MP3.ShuffleOnceWatched'
CheckedOverlay(5)=Texture'2K4Menus.MP3.ShuffleOnce'
CheckedOverlay(6)=Texture'2K4Menus.MP3.ShuffleOnce'
CheckedOverlay(7)=Texture'2K4Menus.MP3.ShuffleOnce'
CheckedOverlay(8)=Texture'2K4Menus.MP3.ShuffleOnce'
CheckedOverlay(9)=Texture'2K4Menus.MP3.ShuffleOnce'
bAllOverlay=True
Hint="Shuffle"
WinTop=0.666667
WinLeft=0.840000
WinWidth=0.040000
TabOrder=2
OnChange=StreamPlayer.InternalOnChange
OnKeyEvent=ShuffleCheck.InternalOnKeyEvent
End Object
ch_Shuffle=GUICheckBoxButton'GUI2K4.StreamPlayer.ShuffleCheck'
Begin Object Class=GUICheckBoxButton Name=ShuffleAllCheck
CheckedOverlay(0)=Texture'2K4Menus.MP3.ShuffleAllWatched'
CheckedOverlay(1)=Texture'2K4Menus.MP3.ShuffleAllWatched'
CheckedOverlay(2)=Texture'2K4Menus.MP3.ShuffleAllWatched'
CheckedOverlay(3)=Texture'2K4Menus.MP3.ShuffleAllWatched'
CheckedOverlay(4)=Texture'2K4Menus.MP3.ShuffleAllWatched'
CheckedOverlay(5)=Texture'2K4Menus.MP3.ShuffleAll'
CheckedOverlay(6)=Texture'2K4Menus.MP3.ShuffleAll'
CheckedOverlay(7)=Texture'2K4Menus.MP3.ShuffleAll'
CheckedOverlay(8)=Texture'2K4Menus.MP3.ShuffleAll'
CheckedOverlay(9)=Texture'2K4Menus.MP3.ShuffleAll'
bAllOverlay=True
Hint="Shuffle All"
WinTop=0.666667
WinLeft=0.880000
WinWidth=0.040000
TabOrder=3
OnChange=StreamPlayer.InternalOnChange
OnKeyEvent=ShuffleAllCheck.InternalOnKeyEvent
End Object
ch_ShuffleAll=GUICheckBoxButton'GUI2K4.StreamPlayer.ShuffleAllCheck'
Begin Object Class=GUICheckBoxButton Name=RepeatCheck
CheckedOverlay(0)=Texture'2K4Menus.MP3.RepeatOnceWatched'
CheckedOverlay(1)=Texture'2K4Menus.MP3.RepeatOnceWatched'
CheckedOverlay(2)=Texture'2K4Menus.MP3.RepeatOnceWatched'
CheckedOverlay(3)=Texture'2K4Menus.MP3.RepeatOnceWatched'
CheckedOverlay(4)=Texture'2K4Menus.MP3.RepeatOnceWatched'
CheckedOverlay(5)=Texture'2K4Menus.MP3.RepeatOnce'
CheckedOverlay(6)=Texture'2K4Menus.MP3.RepeatOnce'
CheckedOverlay(7)=Texture'2K4Menus.MP3.RepeatOnce'
CheckedOverlay(8)=Texture'2K4Menus.MP3.RepeatOnce'
CheckedOverlay(9)=Texture'2K4Menus.MP3.RepeatOnce'
bAllOverlay=True
Hint="Repeat"
WinTop=0.666667
WinLeft=0.760000
WinWidth=0.040000
TabOrder=0
OnChange=StreamPlayer.InternalOnChange
OnKeyEvent=RepeatCheck.InternalOnKeyEvent
End Object
ch_Repeat=GUICheckBoxButton'GUI2K4.StreamPlayer.RepeatCheck'
Begin Object Class=GUICheckBoxButton Name=RepeatAllCheck
CheckedOverlay(0)=Texture'2K4Menus.MP3.RepeatAllWatched'
CheckedOverlay(1)=Texture'2K4Menus.MP3.RepeatAllWatched'
CheckedOverlay(2)=Texture'2K4Menus.MP3.RepeatAllWatched'
CheckedOverlay(3)=Texture'2K4Menus.MP3.RepeatAllWatched'
CheckedOverlay(4)=Texture'2K4Menus.MP3.RepeatAllWatched'
CheckedOverlay(5)=Texture'2K4Menus.MP3.RepeatAll'
CheckedOverlay(6)=Texture'2K4Menus.MP3.RepeatAll'
CheckedOverlay(7)=Texture'2K4Menus.MP3.RepeatAll'
CheckedOverlay(8)=Texture'2K4Menus.MP3.RepeatAll'
CheckedOverlay(9)=Texture'2K4Menus.MP3.RepeatAll'
bAllOverlay=True
Hint="Repeat All"
WinTop=0.666667
WinLeft=0.800000
WinWidth=0.040000
TabOrder=1
OnChange=StreamPlayer.InternalOnChange
OnKeyEvent=RepeatAllCheck.InternalOnKeyEvent
End Object
ch_RepeatAll=GUICheckBoxButton'GUI2K4.StreamPlayer.RepeatAllCheck'
ID3TagEditorMenu="GUI2K4.ID3TagEditor"
PlaylistEditorMenu="GUI2K4.StreamPlaylistEditor"
ExpandedHeight=0.500000
ConstrictedHeight=0.320000
PauseImage=Texture'2K4Menus.MP3.Pause'
PlayImage=Texture'2K4Menus.MP3.Play'
OpenFolder=Texture'2K4Menus.MP3.ClosePlaylist'
ClosedFolder=Texture'2K4Menus.MP3.ViewPlaylist'
CollapsePlaylistHint="Hide Current Playlist"
ExpandPlaylistHint="Show Current Playlist"
PlayHint="Play"
PauseHint="Pause"
CollapseManagementHint="Hide Playlist Options"
ExpandManagementHint="Show Playlist Options"
RenameCaption="Rename Playlist"
NewCaption="Create New Playlist"
PlaylistNameCaption="Name: "
PLAdd="Add"
PLRemove="Remove"
PLClear="Clear"
MGNew="New"
MGRemove="Remove"
MGRename="Rename"
Begin Object Class=GUIContextMenu Name=SongRCMenu
ContextItems(0)="Play Selected"
ContextItems(1)="Open Playlist Editor"
ContextItems(2)="-"
ContextItems(3)="Remove From Playlist"
ContextItems(4)="Clear Playlist"
OnSelect=StreamPlayer.SongMenuClick
End Object
cm_Playlist=GUIContextMenu'GUI2K4.StreamPlayer.SongRCMenu'
Begin Object Class=GUIContextMenu Name=PlaylistRCMenu
ContextItems(0)="Activate Playlist"
ContextItems(1)="Rename Playlist"
ContextItems(2)="Create new Playlist"
ContextItems(3)="-"
ContextItems(4)="Delete Playlist"
ContextItems(5)="Clear Playlist"
OnSelect=StreamPlayer.PlaylistMenuClick
End Object
cm_AllLists=GUIContextMenu'GUI2K4.StreamPlayer.PlaylistRCMenu'
WindowName="Music Player"
MinPageWidth=0.750000
MinPageHeight=0.320000
MaxPageWidth=0.900000
bResizeHeightAllowed=False
bPersistent=True
bAllowedAsLast=True
WinHeight=0.320000
Begin Object Class=GUIContextMenu Name=PlayerRCMenu
ContextItems(0)="Change Settings"
OnSelect=StreamPlayer.PlayerMenuClick
End Object
ContextMenu=GUIContextMenu'GUI2K4.StreamPlayer.PlayerRCMenu'
}
|
Creation time: Wed 7/2/2007 19:16:17.359 - Created with
UnCodeX