Game Development Community

dev|Pro Game Development Curriculum

CD Player

by Tim Heldna · 02/16/2007 (9:20 am) · 1 comments

Here's a basic CD Player for anyone who wants it.

It's completely scripted, is straight forward to install, features play, previous track, next track and stop buttons as well as a track list and should detect all installed CD devices.

Installation:

  • Add the following line to yourModFolder/client/init.cs
  • exec("./ui/CDPlayer.gui");

  • Download the following file named CDPlayer.gui and save it to yourModFolder/client/ui: CDPlayer.gui

  • Delete yourModFolder/client/config.cs to ensure our new keybinding is picked up

  • That's it. Run your game and hit Ctrl-M to open the CD Player. Enjoy.

    i5.photobucket.com/albums/y189/fjs/CDPlayer.jpg

    #1
    05/17/2007 (1:06 pm)
    Works like a charm! If only all resources were this simple...
    The one thing that's mising is track names, but for me personally it doesn't matter.